X-Git-Url: https://scm.cri.ensmp.fr/git/MosaicDocument.git/blobdiff_plain/155c6ba3d7e8e9693d30b3cf70f591f0153610b6..99b3ba92670e19c1f86f5de83b8e6bbe4fdc297f:/exportimport/mosaictool.py diff --git a/exportimport/mosaictool.py b/exportimport/mosaictool.py deleted file mode 100644 index a0a55e1..0000000 --- a/exportimport/mosaictool.py +++ /dev/null @@ -1,22 +0,0 @@ -from Products.CMFCore.utils import getToolByName -from Products.GenericSetup.utils import importObjects, exportObjects - -def importMosaicTool(context): - """Import mosaic tool and content types from XML files. - """ - site = context.getSite() - tool = getToolByName(site, 'mosaic_tool') - - importObjects(tool, 'mosaic_tool/', context) - -def exportMosaicTool(context): - """Export mosaic tool content types as a set of XML files. - """ - site = context.getSite() - tool = getToolByName(site, 'mosaic_tool', None) - if tool is None: - logger = context.getLogger('mosaictool') - logger.info('Nothing to export.') - return - - exportObjects(tool, 'mosaic_tool/', context) \ No newline at end of file