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

Changed to use acquisition exclusively.

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