From 9e25141ee85677d7b2d39330818c9ae088bc938d Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Wed, 14 May 2008 01:48:54 +0000 Subject: [PATCH] Always define old_ihotfix_context (will simplify when there are more cases when ihotfix context should not be restored). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20942 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/CMFActivity/ActivityTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py index 450cdc64b3..c4760cb7a5 100644 --- a/product/CMFActivity/ActivityTool.py +++ b/product/CMFActivity/ActivityTool.py @@ -811,6 +811,7 @@ class ActivityTool (Folder, UniqueObject): 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 @@ class ActivityTool (Folder, UniqueObject): 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: -- 2.30.9