Commit 67bde7d0 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unneeded pop: the dict is not used afterward.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2ecb041
...@@ -4554,7 +4554,6 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4554,7 +4554,6 @@ Business Template is a set of definitions, such as skins, portal types and categ
for path, action in object_to_update.iteritems(): for path, action in object_to_update.iteritems():
if action in ('remove', 'save_and_remove'): if action in ('remove', 'save_and_remove'):
remove_object_dict[path] = action remove_object_dict[path] = action
object_to_update.pop(path)
# remove object from old business template # remove object from old business template
if len(remove_object_dict): if len(remove_object_dict):
......
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