Last change
on this file since 2677 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
871 bytes
|
Line | |
---|
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 PingInfo, PingTool |
---|
7 | from config import * |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
14 | |
---|
15 | tools = ( PingTool.PingTool, ) |
---|
16 | |
---|
17 | def initialize(context): |
---|
18 | |
---|
19 | utils.ToolInit("PingTool", tools=tools, product_name=PROJECTNAME, icon=TOOL_ICON, |
---|
20 | ).initialize(context) |
---|
21 | |
---|
22 | content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) |
---|
23 | |
---|
24 | utils.ContentInit( |
---|
25 | PROJECTNAME + ' Content', |
---|
26 | content_types = content_types, |
---|
27 | permission = ADD_PERMISSION, |
---|
28 | extra_constructors = constructors, |
---|
29 | fti = ftis, |
---|
30 | ).initialize(context) |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.