[Erp5-report] r43682 jerome - /erp5/trunk/products/ERP5/Document/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 24 17:08:02 CET 2011


Author: jerome
Date: Thu Feb 24 17:08:02 2011
New Revision: 43682

URL: http://svn.erp5.org?rev=43682&view=rev
Log:
with portal type as classes, this can fail with other reason than AttributeError, use __traceback_info__ to have debugging info in the error_log

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=43682&r1=43681&r2=43682&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py [utf8] Thu Feb 24 17:08:02 2011
@@ -1084,11 +1084,8 @@ class ObjectTemplateItem(BaseTemplateIte
             obj._initBTrees()
           obj = obj._getCopy(container)
           self.removeProperties(obj, 0)
-          try:
-            container._setObject(object_id, obj)
-          except AttributeError:
-            LOG("BT, install", 0, object_id)
-            raise
+          __traceback_info__ = (container, object_id, obj)
+          container._setObject(object_id, obj)
           obj = container._getOb(object_id)
 
           if not object_existed:



More information about the Erp5-report mailing list