Last change
on this file since 3603 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
811 bytes
|
Line | |
---|
1 | from Products.Archetypes.public import process_types, listTypes |
---|
2 | from Products.CMFCore import utils |
---|
3 | from Products.CMFCore.DirectoryView import registerDirectory, registerFileExtension |
---|
4 | |
---|
5 | from config import * |
---|
6 | |
---|
7 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
8 | |
---|
9 | def initialize(context): |
---|
10 | ##Import Types here to register them |
---|
11 | from qTopic import qTopic |
---|
12 | from zLOG import LOG |
---|
13 | |
---|
14 | content_types, constructors, ftis = process_types( |
---|
15 | listTypes(PROJECTNAME), |
---|
16 | PROJECTNAME) |
---|
17 | LOG('*',0, str(content_types), PROJECTNAME) |
---|
18 | |
---|
19 | utils.ContentInit( |
---|
20 | PROJECTNAME + ' Content', |
---|
21 | content_types = content_types, |
---|
22 | permission = ADD_TOPIC_PERMISSION, |
---|
23 | extra_constructors = constructors, |
---|
24 | fti = ftis, |
---|
25 | ).initialize(context) |
---|
26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.