# -*- coding: utf-8 # Copyright 2006 by Meelis Mets __doc__ = """ Application """ __version__ = "0.1" from Globals import package_home from Products.CMFCore.DirectoryView import registerDirectory from Products.CMFCore import utils from Products.Archetypes.public import process_types, listTypes from config import PROJECT_NAME, SKINS_DIR, GLOBALS import Application 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 = 'View', extra_constructors = tuple(constructors), fti = ftis, ).initialize(context)