Commit 8c5c27a9 authored by Julien Muchembled's avatar Julien Muchembled

Add a comment about a limitation of [36156]

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36512 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7399b82e
......@@ -1114,8 +1114,12 @@ class TemplateTool (BaseTool):
state = listbox_line.object_state
removed = state.startswith('Removed')
if removed:
moved = installed_dict.get(listbox_line.object_id, '')
log('%s: %s%s' % (state, item, moved and ' (moved to %s)' % moved))
# The following condition could not be used to automatically decide
# if an item must be kept or not. For example, this would not work
# for items installed by PortalTypeWorkflowChainTemplateItem.
maybe_moved = installed_dict.get(listbox_line.object_id, '')
log('%s: %s%s' % (state, item,
maybe_moved and ' (moved to %s ?)' % maybe_moved))
else:
installed_dict[item] = bt_title
# if a bt5 item is removed we may still want to keep it
......
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