# -*- coding: utf-8 # Copyright 2005 by Vahur Rebas __doc__ = """ Time table module. """ __version__ = "0.0" from Globals import package_home from Products.CMFCore.DirectoryView import registerDirectory from Products.CMFCore import utils from Products.Archetypes.public import process_types, listTypes import TTTool from config import PROJECT_NAME, SKINS_DIR, GLOBALS import TimeTable registerDirectory(SKINS_DIR, GLOBALS) def initialize(context): """ initialize """ content_types, constructors, ftis = process_types(listTypes(PROJECT_NAME), PROJECT_NAME) utils.ContentInit( PROJECT_NAME + ' Content', content_types = tuple(content_types), permission = 'Edit', extra_constructors = tuple(constructors), fti = ftis, ).initialize(context) utils.ToolInit( 'Time Table Tool', tools=(TTTool.TTTool,), product_name=PROJECT_NAME, icon='tt_icon.gif').initialize(context)