Beispiel #1
0
 def listExportableItems(self):
     """ See IFilesystemExporter.
     """
     exportable = self.context.objectItems()
     exportable = [x for x in exportable
                     if not ISetupTool.isImplementedBy(x[1])]
     exportable = [x + (queryAdapter(x[1], IFilesystemExporter, None),)
                     for x in exportable]
     return exportable
Beispiel #2
0
 def listExportableItems(self):
     """ See IFilesystemExporter.
     """
     exportable = self.context.objectItems()
     exportable = [x for x in exportable
                     if not ISetupTool.providedBy(x[1])]
     exportable = [x + (IFilesystemExporter(x[1], None),)
                     for x in exportable]
     return exportable
Beispiel #3
0
 def listExportableItems(self):
     """ See IFilesystemExporter.
     """
     exportable = self.context.objectItems()
     exportable = [x for x in exportable
                     if not ISetupTool.providedBy(x[1])]
     exportable = [x + (IFilesystemExporter(x[1], None),)
                     for x in exportable]
     return exportable
Beispiel #4
0
 def _purgeObjects(self):
     for obj_id, obj in self.context.objectItems():
         if ISetupTool.providedBy(obj):
             continue
         self.context._delObject(obj_id)
Beispiel #5
0
 def _exportSimpleNode(self):
     """Export the object as a DOM node.
     """
     if ISetupTool.providedBy(self.context):
         return None
     return self._getObjectNode('object', False)
Beispiel #6
0
 def _mustPreserve(self):
     return [x for x in self.context.objectItems()
                     if ISetupTool.providedBy(x[1])]
Beispiel #7
0
 def _mustPreserve(self):
     return [x for x in self.context.objectItems()
                     if ISetupTool.isImplementedBy(x[1])]
Beispiel #8
0
 def _purgeObjects(self):
     for obj_id, obj in self.context.objectItems():
         if ISetupTool.providedBy(obj):
             continue
         self.context._delObject(obj_id)
Beispiel #9
0
 def _exportSimpleNode(self):
     """Export the object as a DOM node.
     """
     if ISetupTool.providedBy(self.context):
         return None
     return self._getObjectNode('object', False)