Last change
on this file since 1232 was
626,
checked in by crchemist, 17 years ago
|
Modified tests.
|
File size:
735 bytes
|
Line | |
---|
1 | from zope.i18nmessageid import MessageFactory |
---|
2 | |
---|
3 | from Products.Archetypes.public import process_types, listTypes |
---|
4 | from Products.CMFCore import utils as ut |
---|
5 | |
---|
6 | from config import * |
---|
7 | |
---|
8 | PingToolMessageFactory = MessageFactory(PROJECTNAME) |
---|
9 | |
---|
10 | def initialize(context): |
---|
11 | import PingInfo, PingTool |
---|
12 | ut.ToolInit("PingTool", (PingTool.PingTool, ), icon=TOOL_ICON, |
---|
13 | ).initialize(context) |
---|
14 | |
---|
15 | content_types, constructors, ftis = process_types(listTypes(PROJECTNAME), PROJECTNAME) |
---|
16 | |
---|
17 | ut.ContentInit( |
---|
18 | PROJECTNAME + ' Content', |
---|
19 | content_types = content_types, |
---|
20 | permission = ADD_PERMISSION, |
---|
21 | extra_constructors = constructors, |
---|
22 | fti = ftis, |
---|
23 | ).initialize(context) |
---|
Note: See
TracBrowser
for help on using the repository browser.