Commit 274002d6 authored by Jim Fulton's avatar Jim Fulton

Changed to use acquisition exclusively.

parent 2dfd1bd5
......@@ -185,10 +185,8 @@ class ExternalMethod(OFS.SimpleItem.Item, Persistent, Explicit,
if (self.func_code.co_argcount-len(self.func_defaults or ()) - 1
== len(args)) and self.func_code.co_varnames[0]=='self':
return apply(f,(self.aq_parent,)+args,kw)
try: parent=self.aq_acquire('REQUEST')['PARENTS'][0]
except: parent=self.aq_parent
return apply(f,(parent,)+args,kw)
raise TypeError, v
......
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