source: products/qPloneDropDownMenu/branches/0.2/skins/qPloneDropDownMenu/qpdm_reorder.py @ 1

Last change on this file since 1 was 1, checked in by myroslav, 16 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 473 bytes
Line 
1## Script (Python) "qpdm_reorder"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters= submenu_path, idxs
8##title=
9##
10
11from Products.CMFCore.utils import getToolByName
12
13menu_tool = getToolByName(context, 'portal_dropdownmenu')
14menuitem = menu_tool.manage_reorderItems(idxs, submenu_path)
15
16return context.getSubmenu(submenu=menu_tool.getSubMenuByPath(submenu_path),submenu_path=submenu_path)
Note: See TracBrowser for help on using the repository browser.