from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.utils import getToolByName
from types import InstanceType
+import config
from AccessControl import ClassSecurityInfo, Unauthorized
from Products.CMFCore.permissions import View, ModifyPortalContent, \
def addMosaicBlockInformation(self, id=None, blockType = '', metaFti = None, REQUEST=None) :
"""Add a MosaicBlock"""
- mosaicTool = self.mosaic_tool
if blockType :
- metaFtis = mosaicTool.getDefaultBlockMetaFtis()
+ metaFtis = config.getDefaultBlockMetaFtis()
if not metaFtis.has_key(blockType) :
raise ValueError, "Unknown block type : %s" % blockType
else :