Back to index

plone3  3.1.7
content.py
Go to the documentation of this file.
00001 from zope.interface import implements
00002 from zope.interface import Interface
00003 
00004 from Products.GenericSetup.interfaces import IFilesystemExporter
00005 
00006 # XXX: This is a temporary hack to allow disabling exporting of some
00007 # content types until all of them support proper exporting
00008 
00009 class IDisabledExport(Interface):
00010     pass
00011 
00012 class NullExporterAdapter(object):
00013     """Dummy exporter that does nothing
00014     """
00015 
00016     implements(IFilesystemExporter)
00017 
00018     def __init__(self, context):
00019         self.context = context
00020 
00021     def export(self, export_context, subdir):
00022         pass
00023 
00024     def listExportableItems(self):
00025         return []