1 from Products
.CMFCore
.utils
import getToolByName
2 from Products
.GenericSetup
.utils
import importObjects
, exportObjects
4 def importMosaicTool(context
):
5 """Import mosaic tool and content types from XML files.
7 site
= context
.getSite()
8 tool
= getToolByName(site
, 'mosaic_tool')
10 importObjects(tool
, 'mosaic_tool/', context
)
12 def exportMosaicTool(context
):
13 """Export mosaic tool content types as a set of XML files.
15 site
= context
.getSite()
16 tool
= getToolByName(site
, 'mosaic_tool', None)
18 logger
= context
.getLogger('mosaictool')
19 logger
.info('Nothing to export.')
22 exportObjects(tool
, 'mosaic_tool/', context
)