Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
PluginRegistry.exportimport.PluginRegistryFileExportImportAdapter Class Reference

List of all members.

Public Member Functions

def __init__
def export
def listExportableItems
def import_

Public Attributes

 context

Detailed Description

Designed for ues when exporting / importing PR's within a container.

Definition at line 149 of file exportimport.py.


Constructor & Destructor Documentation

Definition at line 154 of file exportimport.py.

00154 
00155     def __init__(self, context):
00156         self.context = context


Member Function Documentation

def PluginRegistry.exportimport.PluginRegistryFileExportImportAdapter.export (   self,
  export_context,
  subdir,
  root = False 
)
See IFilesystemExporter.

Definition at line 157 of file exportimport.py.

00157 
00158     def export(self, export_context, subdir, root=False):
00159         """ See IFilesystemExporter.
00160         """
00161         context = self.context
00162         pre = PluginRegistryExporter(context).__of__(context)
00163         xml = pre.generateXML()
00164         export_context.writeDataFile(_FILENAME,
00165                                      xml,
00166                                      'text/xml',
00167                                      subdir,
00168                                     )

def PluginRegistry.exportimport.PluginRegistryFileExportImportAdapter.import_ (   self,
  import_context,
  subdir,
  root = False 
)
See IFilesystemImporter.

Definition at line 174 of file exportimport.py.

00174 
00175     def import_(self, import_context, subdir, root=False):
00176         """ See IFilesystemImporter.
00177         """
00178         data = import_context.readDataFile(_FILENAME, subdir)
00179         if data is None:
00180             import_context.note('SGAIFA',
00181                                 'no pluginregistry.xml in %s' % subdir)
00182         else:
00183             request = FauxDAVRequest(BODY=data, BODYFILE=StringIO(data))
00184             response = FauxDAVResponse()
00185             _updatePluginRegistry(self.context,
00186                                   data,
00187                                   import_context.shouldPurge(),
00188                                   import_context.getEncoding(),
00189                                  )

Here is the call graph for this function:

See IFilesystemExporter.

Definition at line 169 of file exportimport.py.

00169 
00170     def listExportableItems(self):
00171         """ See IFilesystemExporter.
00172         """
00173         return ()


Member Data Documentation

Definition at line 155 of file exportimport.py.


The documentation for this class was generated from the following file: