[Erp5-report] r11372 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 20 10:24:18 CET 2006
Author: vincent
Date: Mon Nov 20 10:24:15 2006
New Revision: 11372
URL: http://svn.erp5.org?rev=11372&view=rev
Log:
Do not fail on non-existing business template properties when generating the list of contained paths (used in Base_viewOrphanObjectList listbox list method).
Modified:
erp5/trunk/products/ERP5/Document/BusinessTemplate.py
Modified: erp5/trunk/products/ERP5/Document/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/BusinessTemplate.py?rev=11372&r1=11371&r2=11372&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Mon Nov 20 10:24:15 2006
@@ -4535,8 +4535,9 @@
"""
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 at nexedi.com>
More information about the Erp5-report
mailing list