[Checkins] SVN: zope.sendmail/trunk/ Depend on ``zope.component`` >= 3.8.0, which supports the new semantic of
Fabio Tranchitella
kobold at kobold.it
Sun Nov 8 06:21:22 EST 2009
Log message for revision 105530:
Depend on ``zope.component`` >= 3.8.0, which supports the new semantic of
zope.component.zcml.proxify needed by zope.sendmail.zcml.
Changed:
U zope.sendmail/trunk/CHANGES.txt
U zope.sendmail/trunk/buildout.cfg
U zope.sendmail/trunk/setup.py
U zope.sendmail/trunk/src/zope/sendmail/zcml.py
-=-
Modified: zope.sendmail/trunk/CHANGES.txt
===================================================================
--- zope.sendmail/trunk/CHANGES.txt 2009-11-08 11:11:56 UTC (rev 105529)
+++ zope.sendmail/trunk/CHANGES.txt 2009-11-08 11:21:22 UTC (rev 105530)
@@ -2,10 +2,11 @@
CHANGES
=======
-3.x.x (unreleased)
+3.6.1 (unreleased)
------------------
-- (no changes so far)
+- Depend on ``zope.component`` >= 3.8.0, which supports the new semantic of
+ zope.component.zcml.proxify needed by zope.sendmail.zcml.
3.6.0 (2009-09-14)
------------------
Modified: zope.sendmail/trunk/buildout.cfg
===================================================================
--- zope.sendmail/trunk/buildout.cfg 2009-11-08 11:11:56 UTC (rev 105529)
+++ zope.sendmail/trunk/buildout.cfg 2009-11-08 11:21:22 UTC (rev 105530)
@@ -1,5 +1,5 @@
[buildout]
-develop = .
+develop = . packages/*
parts = test coverage-test coverage-report
[test]
@@ -15,4 +15,4 @@
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coverage=coverage-report
-arguments = ('coverage', 'coverage/report')
\ No newline at end of file
+arguments = ('coverage', 'coverage/report')
Modified: zope.sendmail/trunk/setup.py
===================================================================
--- zope.sendmail/trunk/setup.py 2009-11-08 11:11:56 UTC (rev 105529)
+++ zope.sendmail/trunk/setup.py 2009-11-08 11:21:22 UTC (rev 105530)
@@ -50,7 +50,7 @@
# extras to ease reusability.
# it's only needed for vocabulary and zcml
- 'zope.component',
+ 'zope.component>=3.8.0dev',
# these are only needed for zcml
'zope.configuration',
Modified: zope.sendmail/trunk/src/zope/sendmail/zcml.py
===================================================================
--- zope.sendmail/trunk/src/zope/sendmail/zcml.py 2009-11-08 11:11:56 UTC (rev 105529)
+++ zope.sendmail/trunk/src/zope/sendmail/zcml.py 2009-11-08 11:21:22 UTC (rev 105530)
@@ -18,7 +18,7 @@
__docformat__ = 'restructuredtext'
from zope.component import queryUtility
-from zope.component.zcml import handler, proxify, PublicPermission
+from zope.component.zcml import handler, proxify
from zope.configuration.fields import Path
from zope.configuration.exceptions import ConfigurationError
from zope.interface import Interface
@@ -32,13 +32,8 @@
from zope.sendmail.mailer import SMTPMailer
def _assertPermission(permission, interfaces, component):
- if permission is not None:
- if permission == PublicPermission:
- permission = CheckerPublic
- checker = InterfaceChecker(interfaces, permission)
+ return proxify(component, provides=interfaces, permission=permission)
- return proxify(component, checker)
-
class IDeliveryDirective(Interface):
"""This abstract directive describes a generic mail delivery utility
registration."""
More information about the checkins
mailing list