Last change
on this file was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
500 bytes
|
Rev | Line | |
---|
[1] | 1 | ## Script (Python) "qpdm_delete" |
---|
| 2 | ##bind container=container |
---|
| 3 | ##bind context=context |
---|
| 4 | ##bind namespace= |
---|
| 5 | ##bind script=script |
---|
| 6 | ##bind subpath=traverse_subpath |
---|
| 7 | ##parameters= submenu_path |
---|
| 8 | ##title= |
---|
| 9 | ## |
---|
| 10 | |
---|
| 11 | from Products.CMFCore.utils import getToolByName |
---|
| 12 | |
---|
| 13 | menu_tool = getToolByName(context, 'portal_dropdownmenu') |
---|
| 14 | menuitem = menu_tool.manage_removeMenuItem(submenu_path) |
---|
| 15 | |
---|
| 16 | path = '/'.join(submenu_path.strip().split('/')[:-1]) |
---|
| 17 | |
---|
| 18 | return context.getSubmenu(submenu=menu_tool.getSubMenuByPath(path),submenu_path=path) |
---|
Note: See
TracBrowser
for help on using the repository browser.