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

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Aug 12 18:12:55 CEST 2006


Author: jerome
Date: Sat Aug 12 18:12:50 2006
New Revision: 9173

URL: http://svn.erp5.org?rev=9173&view=rev
Log:
r9074 had some side effects with Interaction Workflows which doesn't reset
workflow_history if it's None; so it's safer to del the attribute.


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=9173&r1=9172&r2=9173&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/BusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/Document/BusinessTemplate.py Sat Aug 12 18:12:50 2006
@@ -378,7 +378,10 @@
     if hasattr(aq_base(obj), '_filepath'):
       obj._filepath = None
     if hasattr(aq_base(obj), 'workflow_history'):
-      obj.workflow_history = None
+      if hasattr(obj.__class__, 'workflow_history'):
+        obj.workflow_history = None
+      else:
+        del obj.workflow_history
     if getattr(obj, 'meta_type', None) == 'Script (Python)':
       if hasattr(aq_base(obj), '_code'):
         obj._code = None




More information about the Erp5-report mailing list