|
Revision 996
(checked in by piv, 1 year ago)
|
initial import of branche for plone 2.1
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 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 |
|
|---|
| 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) |
|---|