source: products/qPloneTabs/tags/0.1/skins/qPloneTabs/qpt_delete.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 18 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
11act_tool = context.portal_actions
12actions = act_tool.listActionInfos([],context,0,0,0)
13tabs = filter(lambda a: a['category'] == 'portal_tabs', actions)
14if tabs[int(idx)]['id'] == id:
15    act_tool.deleteActions([actions.index(tabs[int(idx)]),])
Note: See TracBrowser for help on using the repository browser.