Commit 77b57492 authored by Vincent Pelletier's avatar Vincent Pelletier

Do not fail on non-existing business template properties when generating the...

Do not fail on non-existing business template properties when generating the list of contained paths (used in Base_viewOrphanObjectList listbox list method).



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11372 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 36f469fe
......@@ -4535,8 +4535,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
"""
items_list = []
for item_name in self._item_name_list:
item = getattr(self, item_name)
items_list.extend(item.getKeys())
item = getattr(self, item_name, None)
if item is not None:
items_list.extend(item.getKeys())
return items_list
#By christophe Dumez <christophe@nexedi.com>
......
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