Commit c063f552 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a comment about code assumption which can lead to exceptions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19379 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67bde7d0
...@@ -4557,6 +4557,7 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4557,6 +4557,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
# remove object from old business template # remove object from old business template
if len(remove_object_dict): if len(remove_object_dict):
# XXX: this code assumes that there is an installed_bt
for item_name in installed_bt._item_name_list: for item_name in installed_bt._item_name_list:
item = getattr(installed_bt, item_name, None) item = getattr(installed_bt, item_name, None)
if item is not None: if item is not None:
......
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