root/qTrackSpam/trunk/__init__.py

Revision 691 (checked in by mylan, 2 years ago)

Import to public.

  • Property svn:eol-style set to native
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 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 browser.