Last change
on this file since 3565 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
738 bytes
|
Rev | Line | |
---|
[1] | 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 | import patch |
---|
| 7 | |
---|
| 8 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 9 | |
---|
| 10 | def initialize(context): |
---|
| 11 | ##Import Types here to register them |
---|
| 12 | from qTopic import qTopic |
---|
| 13 | |
---|
| 14 | content_types, constructors, ftis = process_types( |
---|
| 15 | listTypes(PROJECTNAME), |
---|
| 16 | PROJECTNAME) |
---|
| 17 | |
---|
| 18 | utils.ContentInit( |
---|
| 19 | PROJECTNAME + ' Content', |
---|
| 20 | content_types = content_types, |
---|
| 21 | permission = AddTopics, |
---|
| 22 | extra_constructors = constructors, |
---|
| 23 | fti = ftis, |
---|
| 24 | ).initialize(context) |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.