Log message for revision 41640:
- IBody extends INode, so we can safely use implementsOnly to make adapter registration easier
Changed:
U GenericSetup/trunk/utils.py
-=-
Modified: GenericSetup/trunk/utils.py
===================================================================
--- GenericSetup/trunk/utils.py 2006-02-17 12:35:02 UTC (rev 41639)
+++ GenericSetup/trunk/utils.py 2006-02-17 17:23:12 UTC (rev 41640)
@@ -39,6 +39,7 @@
from cgi import escape
from zope.app import zapi
from zope.interface import implements
+from zope.interface import implementsOnly
from zope.interface import providedBy
from exceptions import BadRequest
@@ -453,7 +454,7 @@
"""Body im- and exporter base.
"""
- implements(IBody)
+ implementsOnly(IBody)
def _exportSimpleNode(self):
"""Export the object as a DOM node.
@@ -489,7 +490,7 @@
"""XML im- and exporter base.
"""
- implements(IBody)
+ implementsOnly(IBody)
def _exportBody(self):
"""Export the object as a file body.
_______________________________________________
Zope-CVS maillist - Zope-CVS@zope.org
http://mail.zope.org/mailman/listinfo/zope-cvs
Zope CVS instructions: http://dev.zope.org/CVS
- IBody extends INode, so we can safely use implementsOnly to make adapter registration easier
Changed:
U GenericSetup/trunk/utils.py
-=-
Modified: GenericSetup/trunk/utils.py
===================================================================
--- GenericSetup/trunk/utils.py 2006-02-17 12:35:02 UTC (rev 41639)
+++ GenericSetup/trunk/utils.py 2006-02-17 17:23:12 UTC (rev 41640)
@@ -39,6 +39,7 @@
from cgi import escape
from zope.app import zapi
from zope.interface import implements
+from zope.interface import implementsOnly
from zope.interface import providedBy
from exceptions import BadRequest
@@ -453,7 +454,7 @@
"""Body im- and exporter base.
"""
- implements(IBody)
+ implementsOnly(IBody)
def _exportSimpleNode(self):
"""Export the object as a DOM node.
@@ -489,7 +490,7 @@
"""XML im- and exporter base.
"""
- implements(IBody)
+ implementsOnly(IBody)
def _exportBody(self):
"""Export the object as a file body.
_______________________________________________
Zope-CVS maillist - Zope-CVS@zope.org
http://mail.zope.org/mailman/listinfo/zope-cvs
Zope CVS instructions: http://dev.zope.org/CVS