|
Revision 71
(checked in by chervol, 3 years ago)
|
deleted svn:executable
|
| Line | |
|---|
| 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 |
|
|---|
| 7 |
registerDirectory(SKINS_DIR, GLOBALS) |
|---|
| 8 |
|
|---|
| 9 |
def initialize(context): |
|---|
| 10 |
|
|---|
| 11 |
from qTopic import qTopic |
|---|
| 12 |
from zLOG import LOG |
|---|
| 13 |
|
|---|
| 14 |
content_types, constructors, ftis = process_types( |
|---|
| 15 |
listTypes(PROJECTNAME), |
|---|
| 16 |
PROJECTNAME) |
|---|
| 17 |
LOG('*',0, str(content_types), PROJECTNAME) |
|---|
| 18 |
|
|---|
| 19 |
utils.ContentInit( |
|---|
| 20 |
PROJECTNAME + ' Content', |
|---|
| 21 |
content_types = content_types, |
|---|
| 22 |
permission = ADD_TOPIC_PERMISSION, |
|---|
| 23 |
extra_constructors = constructors, |
|---|
| 24 |
fti = ftis, |
|---|
| 25 |
).initialize(context) |
|---|
| 26 |
|
|---|