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 ...@@ -4535,8 +4535,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
""" """
items_list = [] items_list = []
for item_name in self._item_name_list: for item_name in self._item_name_list:
item = getattr(self, item_name) item = getattr(self, item_name, None)
items_list.extend(item.getKeys()) if item is not None:
items_list.extend(item.getKeys())
return items_list return items_list
#By christophe Dumez <christophe@nexedi.com> #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