Last change
on this file since 3664 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
432 bytes
|
Line | |
---|
1 | ## Script (Python) "qpt_delete" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters= idx, id |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | |
---|
11 | act_tool = context.portal_actions |
---|
12 | actions = act_tool.listActionInfos([],context,0,0,0) |
---|
13 | tabs = filter(lambda a: a['category'] == 'portal_tabs', actions) |
---|
14 | if tabs[int(idx)]['id'] == id: |
---|
15 | act_tool.deleteActions([actions.index(tabs[int(idx)]),]) |
---|
Note: See
TracBrowser
for help on using the repository browser.