[Erp5-report] r15852 - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Aug 27 17:50:31 CEST 2007


Author: jp
Date: Mon Aug 27 17:50:31 2007
New Revision: 15852

URL: http://svn.erp5.org?rev=15852&view=rev
Log:
Fixed usage of Transactional Variable

Modified:
    erp5/trunk/products/ERP5Type/Base.py

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=15852&r1=15851&r2=15852&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Mon Aug 27 17:50:31 2007
@@ -128,11 +128,11 @@
       # Check if this method has already been called in this transaction
       # (only check this if we use once only workflow methods)
       call_method_key = ('Products.ERP5Type.Base.WorkflowMethod.__call__', self._id, instance.getPhysicalPath())
-      transactional_variable = getTransactionalVariable(call_method_key)
+      transactional_variable = getTransactionalVariable(instance)
       try:
-        call_method = transactional_variable['call_method_key']
+        call_method = transactional_variable[call_method_key]
       except KeyError:
-        transactional_variable['call_method_dict'] = 1
+        transactional_variable[call_method_key] = 1
 
     if call_method and not self._invoke_always:
       # Try to return immediately if there are no invoke always workflow methods




More information about the Erp5-report mailing list