Last change
on this file since 3560 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
921 bytes
|
Rev | Line | |
---|
[1] | 1 | from Globals import package_home |
---|
| 2 | from Products.Archetypes.public import process_types, listTypes |
---|
| 3 | from Products.CMFCore import utils |
---|
| 4 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 5 | import os, os.path |
---|
| 6 | import TrackSpamTool |
---|
| 7 | from config import * |
---|
| 8 | |
---|
| 9 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 10 | |
---|
| 11 | tools = ( TrackSpamTool.TrackSpamTool, ) |
---|
| 12 | |
---|
| 13 | def initialize(context): |
---|
| 14 | |
---|
| 15 | utils.ToolInit("TrackSpamTool", |
---|
| 16 | tools=tools, |
---|
| 17 | product_name=PROJECTNAME, |
---|
| 18 | icon=TOOL_ICON, |
---|
| 19 | ).initialize(context) |
---|
| 20 | |
---|
| 21 | # content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) |
---|
| 22 | # |
---|
| 23 | # utils.ContentInit( |
---|
| 24 | # PROJECTNAME + ' Content', |
---|
| 25 | # content_types = content_types, |
---|
| 26 | # permission = 'Manage Portal', |
---|
| 27 | # extra_constructors = constructors, |
---|
| 28 | # fti = ftis, |
---|
| 29 | # ).initialize(context) |
---|
| 30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.