Commit 9e25141e authored by Vincent Pelletier's avatar Vincent Pelletier

Always define old_ihotfix_context (will simplify when there are more cases...

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
parent c0a17cef
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment