Last change
on this file since 1591 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
721 bytes
|
Rev | Line | |
---|
[1] | 1 | from Products.CMFCore import utils |
---|
| 2 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 3 | |
---|
| 4 | from Products.Archetypes.public import process_types, listTypes |
---|
| 5 | |
---|
| 6 | from Products.qSiloGroup.config import * |
---|
| 7 | |
---|
| 8 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 9 | |
---|
| 10 | def initialize(context): |
---|
| 11 | ##Import Types here to register them |
---|
| 12 | from Products.qSiloGroup import SiloSiteMap |
---|
| 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 = VIEW_PERMISSION, |
---|
| 22 | extra_constructors = constructors, |
---|
| 23 | fti = ftis, |
---|
| 24 | ).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.