source: products/qTopic/trunk/__init__.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 16 years ago

Building directory structure

File size: 791 bytes
Line 
1from Products.Archetypes.public import process_types, listTypes
2from Products.CMFCore import utils
3from AccessControl import allow_module
4from Products.CMFCore.DirectoryView import registerDirectory, registerFileExtension
5
6from config import *
7import patch
8
9registerDirectory(SKINS_DIR, GLOBALS)
10allow_module('Products.qTopic.utils')
11
12def initialize(context):
13    ##Import Types here to register them
14    from qTopic import qTopic
15
16    content_types, constructors, ftis = process_types(
17        listTypes(PROJECTNAME),
18        PROJECTNAME)
19
20    utils.ContentInit(
21        PROJECTNAME + ' Content',
22        content_types      = content_types,
23        permission         = AddTopics,
24        extra_constructors = constructors,
25        fti                = ftis,
26        ).initialize(context)
27
Note: See TracBrowser for help on using the repository browser.