[Erp5-report] r20942 - /erp5/trunk/products/CMFActivity/ActivityTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 14 03:48:55 CEST 2008


Author: vincent
Date: Wed May 14 03:48:54 2008
New Revision: 20942

URL: http://svn.erp5.org?rev=20942&view=rev
Log:
Always define old_ihotfix_context (will simplify when there are more cases when ihotfix context should not be restored).

Modified:
    erp5/trunk/products/CMFActivity/ActivityTool.py

Modified: erp5/trunk/products/CMFActivity/ActivityTool.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/ActivityTool.py?rev=20942&r1=20941&r2=20942&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/ActivityTool.py (original)
+++ erp5/trunk/products/CMFActivity/ActivityTool.py Wed May 14 03:48:54 2008
@@ -811,6 +811,7 @@
     def invoke(self, message):
       if logging:
         LOG('Activity Tracking', INFO, 'invoking message: object_path=%s, method_id=%s, args=%s, kw=%s, activity_kw=%s, user_name=%s' % ('/'.join(message.object_path), message.method_id, message.args, message.kw, message.activity_kw, message.user_name))
+      old_ihotfix_context = False
       if getattr(self, 'aq_chain', None) is not None:
         # Grab existing acquisition chain and extrach base objects.
         base_chain = [aq_base(x) for x in self.aq_chain]
@@ -857,7 +858,6 @@
         for item in base_chain:
           my_self = item.__of__(my_self)
       else:
-        old_ihotfix_context = False
         my_self = self
         LOG('CMFActivity.ActivityTool.invoke', INFO, 'Strange: invoke is called outside of acquisition context.')
       try:




More information about the Erp5-report mailing list