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.MimetypesRegistry import MimeTypesRegistry
00005 from Products.MimetypesRegistry.common import skins_dir
00006 
00007 GLOBALS = globals()
00008 PKG_NAME = 'MimetypesRegistry'
00009 
00010 tools = (
00011     MimeTypesRegistry.MimeTypesRegistry,
00012     )
00013 
00014 from Products.MimetypesRegistry import mime_types
00015 
00016 # TODO: figure out if this is used/needed anywhere
00017 import sys
00018 from Products.MimetypesRegistry import MimeTypeItem
00019 sys.modules['Products.MimetypesRegistry.zope.MimeTypeItem'] = MimeTypeItem
00020 # end TODO
00021 
00022 def initialize(context):
00023     from Products.CMFCore import utils
00024     utils.ToolInit("%s Tool" % PKG_NAME, 
00025                    tools=tools,
00026                    icon="tool.gif",
00027                    ).initialize(context)