source: products/qPingTool/tags/0.2/__init__.py

Last change on this file was 1, checked in by myroslav, 18 years ago

Building directory structure

File size: 871 bytes
Line 
1from Globals import package_home
2from Products.Archetypes.public import process_types, listTypes
3from Products.CMFCore import utils
4from Products.CMFCore.DirectoryView import registerDirectory
5import os, os.path
6import PingInfo, PingTool 
7from config import *
8
9
10
11
12
13registerDirectory(SKINS_DIR, GLOBALS)
14
15tools = ( PingTool.PingTool, )
16
17def 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.