Last change
on this file since 2737 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1] | 1 | from Products.Archetypes.public import * |
---|
| 2 | from Products.CMFCore import utils |
---|
| 3 | from Products.CMFCore.DirectoryView import registerDirectory |
---|
| 4 | from config import * |
---|
| 5 | |
---|
| 6 | from ClickTracker import ClickTracker |
---|
| 7 | import campaign |
---|
| 8 | |
---|
| 9 | registerDirectory(SKINS_DIR, GLOBALS) |
---|
| 10 | |
---|
| 11 | tools=(ClickTracker,) |
---|
| 12 | |
---|
| 13 | def initialize(context): |
---|
| 14 | utils.ToolInit(PROJECTNAME, |
---|
| 15 | tools=tools, |
---|
| 16 | product_name=PROJECTNAME, |
---|
| 17 | icon= "tool.gif", |
---|
| 18 | ).initialize(context) |
---|
| 19 | |
---|
| 20 | content_types, constructors, ftis = process_types( |
---|
| 21 | [v for v in listTypes(PROJECTNAME) if v['name'] != 'Campaign'], |
---|
| 22 | PROJECTNAME) |
---|
| 23 | |
---|
| 24 | utils.ContentInit( |
---|
| 25 | PROJECTNAME + ' Content', |
---|
| 26 | content_types = content_types, |
---|
| 27 | permission = ADD_CAMPAIGN_PERMISSION, |
---|
| 28 | extra_constructors = constructors, |
---|
| 29 | fti = ftis, |
---|
| 30 | ).initialize(context) |
---|
| 31 | |
---|
| 32 | import sys |
---|
| 33 | import Products.qClickTrackingTool.legacy.Campaign |
---|
| 34 | #change module alias |
---|
| 35 | sys.modules['Products.qClickTrackingTool.Campaign'] = legacy.Campaign |
---|
Note: See
TracBrowser
for help on using the repository browser.