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:
803 bytes
|
Rev | Line | |
---|
[1] | 1 | from AccessControl import allow_module |
---|
| 2 | from Products.CMFCore import utils |
---|
| 3 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 4 | |
---|
| 5 | from Products.Archetypes.public import process_types, listTypes |
---|
| 6 | |
---|
| 7 | from Products.qSiloGroup.config import * |
---|
| 8 | |
---|
| 9 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 10 | |
---|
| 11 | allow_module('Products.qSiloGroup.utils') |
---|
| 12 | |
---|
| 13 | def initialize(context): |
---|
| 14 | ##Import Types here to register them |
---|
| 15 | from Products.qSiloGroup import SiloSiteMap |
---|
| 16 | |
---|
| 17 | content_types, constructors, ftis = process_types( |
---|
| 18 | listTypes(PROJECTNAME), |
---|
| 19 | PROJECTNAME) |
---|
| 20 | |
---|
| 21 | utils.ContentInit( |
---|
| 22 | PROJECTNAME + ' Content', |
---|
| 23 | content_types = content_types, |
---|
| 24 | permission = VIEW_PERMISSION, |
---|
| 25 | extra_constructors = constructors, |
---|
| 26 | fti = ftis, |
---|
| 27 | ).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.