Last change
on this file was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
File size:
791 bytes
|
Rev | Line | |
---|
[1] | 1 | from Products.Archetypes.public import process_types, listTypes |
---|
| 2 | from Products.CMFCore import utils |
---|
| 3 | from AccessControl import allow_module |
---|
| 4 | from Products.CMFCore.DirectoryView import registerDirectory, registerFileExtension |
---|
| 5 | |
---|
| 6 | from config import * |
---|
| 7 | import patch |
---|
| 8 | |
---|
| 9 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 10 | allow_module('Products.qTopic.utils') |
---|
| 11 | |
---|
| 12 | def 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.