Back to index

plone3  3.1.7
folder_moveitem.py
Go to the documentation of this file.
00001 ## Script (Python) "folder_setorder"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=item_id,delta
00008 ##title=
00009 ##
00010 delta = int(delta)
00011 
00012 context.moveObjectsByDelta(item_id, delta)
00013 
00014 context.plone_utils.reindexOnReorder(context)
00015 
00016 return "<done />"