source: products/qPingTool/branches/plone-3.1/__init__.py

Last change on this file was 243, checked in by mylan, 18 years ago

Remove workflow chain for Discussion Item on installation - resolved cataloging bug.

  • Property svn:eol-style set to native
File size: 754 bytes
Line 
1from zope.i18nmessageid import MessageFactory
2from Products.Archetypes.public import process_types, listTypes
3from Products.CMFCore import utils
4
5qPingToolMessageFactory = MessageFactory('qPingTool')
6
7import PingInfo, PingTool
8from config import *
9
10tools = ( PingTool.PingTool, )
11
12def initialize(context):
13    utils.ToolInit("PingTool", tools=tools, icon=TOOL_ICON,
14                  ).initialize(context)
15
16    content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME)
17
18    utils.ContentInit(
19        PROJECTNAME + ' Content',
20        content_types      = content_types,
21        permission         = ADD_PERMISSION,
22        extra_constructors = constructors,
23        fti                = ftis,
24        ).initialize(context)
25
Note: See TracBrowser for help on using the repository browser.