[Erp5-report] r12084 - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Jan 14 17:07:17 CET 2007
Author: jp
Date: Sun Jan 14 17:07:11 2007
New Revision: 12084
URL: http://svn.erp5.org?rev=12084&view=rev
Log:
Set all private properties to None to prevent unexpected acquisition.
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=12084&r1=12083&r2=12084&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Sun Jan 14 17:07:11 2007
@@ -4883,6 +4883,11 @@
setattr(self, 'template_portal_type_base_category', ())
return
+# Block acquisition on all _item_name_list properties by setting
+# a default class value to None
+for key in BusinessTemplate._item_name_list:
+ setattr(BusinessTemplate, key, None)
+
# Transaction Manager used for update of business template workflow
# XXX update seems to works without it
More information about the Erp5-report
mailing list