[Zope-CVS] SVN: GenericSetup/trunk/utils.py - IBody extends INode,
so we can safely use implementsOnly to make adapter
registration easier
Yvo Schubbe
y.2006_ at wcm-solutions.de
Fri Feb 17 12:23:12 EST 2006
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.
More information about the Zope-CVS
mailing list