Back to index

plone3  3.1.7
__init__.py
Go to the documentation of this file.
00001 import os.path
00002 __version__ = open(os.path.join(__path__[0], 'version.txt')).read().strip()
00003 
00004 from Products.PortalTransforms.TransformEngine import TransformTool
00005 
00006 GLOBALS = globals()
00007 PKG_NAME = 'PortalTransforms'
00008 
00009 tools = (
00010     TransformTool,
00011     )
00012 
00013 # XXX backward compatibility tricks to make old PortalTransform based Mimetypes
00014 # running (required)
00015 import sys
00016 this_module = sys.modules[__name__]
00017 
00018 from Products.MimetypesRegistry import mime_types
00019 setattr(this_module, 'mime_types', mime_types)
00020 
00021 from Products.MimetypesRegistry import MimeTypeItem
00022 setattr(this_module, 'MimeTypeItem', MimeTypeItem)
00023 
00024 from Products.MimetypesRegistry import MimeTypeItem
00025 sys.modules['Products.PortalTransforms.zope.MimeTypeItem'] = MimeTypeItem
00026 
00027 def initialize(context):
00028     from Products.CMFCore import utils
00029     utils.ToolInit("%s Tool" % PKG_NAME, 
00030                    tools=tools,
00031                    icon="tool.gif",
00032                    ).initialize(context)