[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/interfaces.py - improved interface docstring (quoting DM's summary from https://bugs.launchpad.net/bugs/448780)
Yvo Schubbe
y.2009 at wcm-solutions.de
Fri Oct 16 06:10:21 EDT 2009
Log message for revision 105100:
- improved interface docstring (quoting DM's summary from https://bugs.launchpad.net/bugs/448780)
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/interfaces.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/interfaces.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/interfaces.py 2009-10-15 22:50:19 UTC (rev 105099)
+++ Products.GenericSetup/trunk/Products/GenericSetup/interfaces.py 2009-10-16 10:10:19 UTC (rev 105100)
@@ -665,6 +665,18 @@
class INode(Interface):
"""Node im- and exporter.
+
+ This is no generic DOM interface. It doesn't always provide a complete
+ serialization of the object and its subobjects. If an adapter only
+ provides 'INode' (and not 'IBody') it is likely to faithfully serialize
+ the object. If, however, it also provides 'IBody', it is likely that its
+ 'node' serializes only an empty hull (without content or additional
+ information such as properties) and expects that the missing parts are
+ taken care of separately by the remaining 'IBody' infrastructure in a
+ separate step. An essential example of this behavior is the default
+ 'INode' adapter for 'Folder' (and friends): its 'node' just specifies the
+ folder's id and meta type, the folder's content is only serialized by
+ 'body'.
"""
node = Text(description=u'Im- and export the object as a DOM node.')
More information about the checkins
mailing list