- Timestamp:
- 8 Mar 2012, 22:28:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/importexport.py
r7811 r7819 22 22 from cStringIO import StringIO 23 23 from zope.interface import Interface 24 from waeup.kofa.interfaces import (IK OFAObject, IKOFAExporter,25 IK OFAXMLExporter, IKOFAXMLImporter)24 from waeup.kofa.interfaces import (IKofaObject, IKofaExporter, 25 IKofaXMLExporter, IKofaXMLImporter) 26 26 27 27 def readFile(f): … … 40 40 41 41 class Exporter(grok.Adapter): 42 """Export a K OFAobject as pickle.42 """Export a Kofa object as pickle. 43 43 44 44 This all-purpose exporter exports attributes defined in schemata 45 45 and contained objects (if the exported thing is a container). 46 46 """ 47 grok.context(IK OFAObject)48 grok.provides(IK OFAExporter)47 grok.context(IKofaObject) 48 grok.provides(IKofaExporter) 49 49 50 50 def __init__(self, context): … … 61 61 62 62 class XMLExporter(grok.Adapter): 63 """Export a K OFAobject as XML.63 """Export a Kofa object as XML. 64 64 65 65 This all-purpose exporter exports XML representations of pickable … … 67 67 """ 68 68 grok.context(Interface) 69 grok.provides(IK OFAXMLExporter)69 grok.provides(IKofaXMLExporter) 70 70 71 71 def __init__(self, context): … … 84 84 85 85 class XMLImporter(grok.Adapter): 86 """Import a K OFAobject from XML.86 """Import a Kofa object from XML. 87 87 """ 88 88 grok.context(Interface) 89 grok.provides(IK OFAXMLImporter)89 grok.provides(IKofaXMLImporter) 90 90 91 91 def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.