Commit 78ca1967 authored by Aurel's avatar Aurel

fix indentation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4854 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3c0578e
......@@ -1420,13 +1420,13 @@ class ActionTemplateItem(ObjectTemplateItem):
, icon = getattr(action, 'icon', None) and action.icon.text or ''
, optional = getattr(action, 'optional', 0)
)
new_priority = action.priority
action_list = obj.listActions()
move_down_list = []
for index in range(len(action_list)):
action = action_list[index]
if action.priority > new_priority:
move_down_list.append(str(index))
new_priority = action.priority
action_list = obj.listActions()
move_down_list = []
for index in range(len(action_list)):
action = action_list[index]
if action.priority > new_priority:
move_down_list.append(str(index))
obj.moveDownActions(selections=tuple(move_down_list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment