-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from collective/MrTango/dx-py3-at-removal
Mr tango/dx py3 at removal
- Loading branch information
Showing
63 changed files
with
403 additions
and
2,930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,4 @@ docs/Makefile | |
/reports | ||
/.coverage.py27-Plone51 | ||
*.sublime-project | ||
/.coverage.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[main] | ||
version = 5.1 | ||
version = 5.2 | ||
template = plone_addon | ||
git_init = y | ||
python = python2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-c constraints_plone51.txt | ||
-c constraints_plone52.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
from Products.Archetypes import atapi | ||
from Products.CMFCore import utils as cmfutils | ||
# avoid circular import | ||
from Products.EasyNewsletter import config # noqa | ||
from zope.i18nmessageid import MessageFactory | ||
|
||
|
||
EasyNewsletterMessageFactory = MessageFactory('EasyNewsletter') | ||
_ = EasyNewsletterMessageFactory | ||
|
||
|
||
def initialize(context): | ||
"""Intializer called when used as a Zope 2 product. | ||
""" | ||
|
||
# initialize portal content | ||
content_types, constructors, ftis = atapi.process_types( | ||
atapi.listTypes(config.PROJECTNAME), | ||
config.PROJECTNAME) | ||
|
||
cmfutils.ContentInit( | ||
config.PROJECTNAME + ' Content', | ||
content_types=content_types, | ||
permission="Add portal content", | ||
extra_constructors=constructors, | ||
fti=ftis, | ||
).initialize(context) |
44 changes: 44 additions & 0 deletions
44
src/Products/EasyNewsletter/behaviors/external_delivery_service.py~Stashed changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# from plone import schema | ||
from plone.autoform.interfaces import IFormFieldProvider | ||
from plone.supermodel import model | ||
# from Products.EasyNewsletter import _ | ||
from zope.component import adapter | ||
from zope.interface import implementer | ||
from zope.interface import Interface | ||
from zope.interface import provider | ||
|
||
|
||
class IExternalDeliveryServiceMarker(Interface): | ||
pass | ||
|
||
|
||
# XXX not implemented yet! | ||
@provider(IFormFieldProvider) | ||
class IExternalDeliveryService(model.Schema): | ||
""" | ||
""" | ||
|
||
# project = schema.TextLine( | ||
# title=_(u'Project'), | ||
# description=_(u'Give in a project name'), | ||
# required=False, | ||
# ) | ||
|
||
|
||
@implementer(IExternalDeliveryService) | ||
@adapter(IExternalDeliveryServiceMarker) | ||
class ExternalDeliveryService(object): | ||
def __init__(self, context): | ||
self.context = context | ||
|
||
# @property | ||
# def project(self): | ||
# if hasattr(self.context, 'project'): | ||
# return self.context.project | ||
# return None | ||
|
||
# @project.setter | ||
# def project(self, value): | ||
# self.context.project = value |
44 changes: 44 additions & 0 deletions
44
src/Products/EasyNewsletter/behaviors/external_subscriber_sources.py~Stashed changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# from plone import schema | ||
from plone.autoform.interfaces import IFormFieldProvider | ||
from plone.supermodel import model | ||
# from Products.EasyNewsletter import _ | ||
from zope.component import adapter | ||
from zope.interface import implementer | ||
from zope.interface import Interface | ||
from zope.interface import provider | ||
|
||
|
||
class IExternalSubscriberSourcesMarker(Interface): | ||
pass | ||
|
||
|
||
# XXX not implemented yet! | ||
@provider(IFormFieldProvider) | ||
class IExternalSubscriberSources(model.Schema): | ||
""" | ||
""" | ||
|
||
# project = schema.TextLine( | ||
# title=_(u'Project'), | ||
# description=_(u'Give in a project name'), | ||
# required=False, | ||
# ) | ||
|
||
|
||
@implementer(IExternalSubscriberSources) | ||
@adapter(IExternalSubscriberSourcesMarker) | ||
class ExternalSubscriberSources(object): | ||
def __init__(self, context): | ||
self.context = context | ||
|
||
# @property | ||
# def project(self): | ||
# if hasattr(self.context, 'project'): | ||
# return self.context.project | ||
# return None | ||
|
||
# @project.setter | ||
# def project(self, value): | ||
# self.context.project = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.