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