示例#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
示例#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
示例#3
0
文件: content.py 项目: dtgit/dtedu
 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
示例#4
0
文件: utils.py 项目: bendavis78/zope
 def _purgeObjects(self):
     for obj_id, obj in self.context.objectItems():
         if ISetupTool.providedBy(obj):
             continue
         self.context._delObject(obj_id)
示例#5
0
文件: utils.py 项目: bendavis78/zope
 def _exportSimpleNode(self):
     """Export the object as a DOM node.
     """
     if ISetupTool.providedBy(self.context):
         return None
     return self._getObjectNode('object', False)
示例#6
0
 def _mustPreserve(self):
     return [x for x in self.context.objectItems()
                     if ISetupTool.providedBy(x[1])]
示例#7
0
文件: content.py 项目: goschtl/zope
 def _mustPreserve(self):
     return [x for x in self.context.objectItems()
                     if ISetupTool.isImplementedBy(x[1])]
示例#8
0
文件: utils.py 项目: goschtl/zope
 def _purgeObjects(self):
     for obj_id, obj in self.context.objectItems():
         if ISetupTool.providedBy(obj):
             continue
         self.context._delObject(obj_id)
示例#9
0
文件: utils.py 项目: goschtl/zope
 def _exportSimpleNode(self):
     """Export the object as a DOM node.
     """
     if ISetupTool.providedBy(self.context):
         return None
     return self._getObjectNode('object', False)