# -*- coding: utf-8 """ LeMill fork """ from Products.CMFCore import utils from Products.CMFCore.DirectoryView import registerDirectory from Products.Archetypes.public import process_types, listTypes from Products.LeMill.permissions import * from config import PROJECT_NAME, SKINS_DIR, GLOBALS import SQITool tools = (SQITool.SQITool,) registerDirectory(SKINS_DIR, GLOBALS) def initialize(context): """ initialize """ utils.ToolInit(PROJECT_NAME + ' Tools', tools=tools, icon = '../LeMill/skins/lemill/tool.gif',).initialize(context) content_types, constructors, ftis = process_types(listTypes(PROJECT_NAME), PROJECT_NAME) utils.ContentInit( PROJECT_NAME + ' Content', content_types = tuple(content_types), permission = ADD_CONTENT_PERMISSION, extra_constructors = tuple(constructors), fti = ftis, ).initialize(context)