Commit 4429d641 authored by Vincent Pelletier's avatar Vincent Pelletier

Oops, partial variable renaming. Sorry.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18581 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 133d2102
...@@ -780,7 +780,8 @@ class ActivityTool (Folder, UniqueObject): ...@@ -780,7 +780,8 @@ class ActivityTool (Folder, UniqueObject):
def invoke(self, message): def invoke(self, message):
if getattr(self, 'aq_chain', None) is not None: if getattr(self, 'aq_chain', None) is not None:
# Grab existing acquisition chain and extrach base objects. # Grab existing acquisition chain and extrach base objects.
base_chain = [aq_base(x) for x in object.aq_chain] import pdb; pdb.set_trace()
base_chain = [aq_base(x) for x in self.aq_chain]
# Grab existig request (last chain item) and create a copy. # Grab existig request (last chain item) and create a copy.
request_container = base_chain.pop() request_container = base_chain.pop()
request = request_container.REQUEST request = request_container.REQUEST
...@@ -789,7 +790,7 @@ class ActivityTool (Folder, UniqueObject): ...@@ -789,7 +790,7 @@ class ActivityTool (Folder, UniqueObject):
parents = getattr(request, 'PARENTS', None) parents = getattr(request, 'PARENTS', None)
if parents is None: if parents is None:
LOG('CMFActivity.ActivityTool.invoke', INFO, 'PARENTS is not defined in REQUEST. It should only happen in unit tests.') LOG('CMFActivity.ActivityTool.invoke', INFO, 'PARENTS is not defined in REQUEST. It should only happen in unit tests.')
request['PARENTS'] = object.aq_chain[:] request['PARENTS'] = self.aq_chain[:]
new_request_container = request_container.__class__(REQUEST=request.clone()) new_request_container = request_container.__class__(REQUEST=request.clone())
# Recreate acquisition chain. # Recreate acquisition chain.
my_self = new_request_container my_self = new_request_container
......
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