- Timestamp:
- 10 Dec 2011, 06:15:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/importexport.py
r7196 r7321 22 22 from cStringIO import StringIO 23 23 from zope.interface import Interface 24 from waeup.sirp.interfaces import (I WAeUPObject, IWAeUPExporter,25 I WAeUPXMLExporter, IWAeUPXMLImporter)24 from waeup.sirp.interfaces import (ISIRPObject, ISIRPExporter, 25 ISIRPXMLExporter, ISIRPXMLImporter) 26 26 27 27 def readFile(f): … … 40 40 41 41 class Exporter(grok.Adapter): 42 """Export a WAeUP object as pickle.42 """Export a SIRP 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(I WAeUPObject)48 grok.provides(I WAeUPExporter)47 grok.context(ISIRPObject) 48 grok.provides(ISIRPExporter) 49 49 50 50 def __init__(self, context): … … 61 61 62 62 class XMLExporter(grok.Adapter): 63 """Export a WAeUP object as XML.63 """Export a SIRP 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(I WAeUPXMLExporter)69 grok.provides(ISIRPXMLExporter) 70 70 71 71 def __init__(self, context): … … 84 84 85 85 class XMLImporter(grok.Adapter): 86 """Import a WAeUP object from XML.86 """Import a SIRP object from XML. 87 87 """ 88 88 grok.context(Interface) 89 grok.provides(I WAeUPXMLImporter)89 grok.provides(ISIRPXMLImporter) 90 90 91 91 def __init__(self, context):
Note: See TracChangeset for help on using the changeset viewer.