|
Last change
on this file since 174 was
1,
checked in by myroslav, 21 years ago
|
|
Building directory structure
|
|
File size:
666 bytes
|
| Line | |
|---|
| 1 | from Products.Archetypes.public import * |
|---|
| 2 | from config import * |
|---|
| 3 | |
|---|
| 4 | schema=BaseFolderSchema |
|---|
| 5 | |
|---|
| 6 | def modify_fti(fti): |
|---|
| 7 | fti['allowed_content_types'] = ('campaign') |
|---|
| 8 | fti['filter_content_types'] = 1 |
|---|
| 9 | fti['global_allow']=0 |
|---|
| 10 | actions = fti['actions'] |
|---|
| 11 | for a in actions: |
|---|
| 12 | if a['id'] == 'view': |
|---|
| 13 | a['action'] = 'string:${object_url}/portal_clicktracker_view' |
|---|
| 14 | actions = list(actions) |
|---|
| 15 | |
|---|
| 16 | fti['actions']=tuple(actions) |
|---|
| 17 | |
|---|
| 18 | class ClickTracker(BaseFolder): |
|---|
| 19 | |
|---|
| 20 | schema=schema |
|---|
| 21 | archetype_name=PROJECTNAME |
|---|
| 22 | id=TOOLID |
|---|
| 23 | |
|---|
| 24 | def __init__(self): |
|---|
| 25 | BaseFolder.__init__(self, self.id) |
|---|
| 26 | |
|---|
| 27 | registerType(ClickTracker) |
|---|
Note: See
TracBrowser
for help on using the repository browser.