# -*- coding: utf-8 # Copyright 2005 by Pjotr Savitski __doc__ = """ Building iCampfolio product """ __version__ = "0.7.1" from Globals import package_home from Products.CMFCore.DirectoryView import registerDirectory, registerFileExtension from Products.CMFCore.FSFile import FSFile from Products.CMFCore import utils, CMFCorePermissions from Products.Archetypes.public import process_types, listTypes from config import PROJECT_NAME, SKINS_DIR, GLOBALS import iCampFolio, iCampTool, Affordance # Get configuration data, permissions from Products.iCampfolio.config import * registerDirectory(SKINS_DIR, GLOBALS) registerFileExtension ('txt', FSFile) registerFileExtension ('java', FSFile) registerFileExtension ('class', FSFile) 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 = 'DEFAULT_ADD_CONTENT_PERMISSION', extra_constructors = tuple(constructors), fti = ftis, ).initialize(context)