Commit 04c00a00 authored by Jim Fulton's avatar Jim Fulton

Changed to use bobo acquisition, if possible.

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