Back to index

plone3  3.1.7
Go to the documentation of this file.
00001 from zope.interface import Interface
00003 class IRuleElementExportImportHandler(Interface):
00004     """An adapter which is used to export/import GenericSetup configuration
00005     for a particular content rule element (condition or action)
00006     """
00008     def import_element(node):
00009         """Set the properties on the given element, based on the given
00010         element schema interface. The node is the <condition /> or <action /> 
00011         root node. Settings are expected to be found in children of the node.
00012         """
00014     def export_element(doc, node):
00015         """Export the properties of the given element with the given 
00016         element schema interface and append them to the given root node.
00017         Use the doc object to create new nodes.
00018         """