[gen] Allow Refs with render='menus' to appear in layout 'buttons'.
This commit is contained in:
parent
34cafcdbc1
commit
d9a89f7ad5
7 changed files with 68 additions and 31 deletions
|
@ -178,7 +178,7 @@ def callMethod(obj, method, klass=None, cache=True):
|
|||
method = method.__get__(klass)
|
||||
elif methodType == 'instancemethod':
|
||||
method = method.im_func
|
||||
# Call the method if cache is not needed.
|
||||
# Call the method if cache is not needed
|
||||
if not cache: return method(obj)
|
||||
# If first arg of method is named "tool" instead of the traditional "self",
|
||||
# we cheat and will call the method with the tool as first arg. This will
|
||||
|
@ -208,7 +208,6 @@ def callMethod(obj, method, klass=None, cache=True):
|
|||
rq.methodCache[key] = res
|
||||
return res
|
||||
|
||||
|
||||
# Functions for manipulating the authentication cookie -------------------------
|
||||
def readCookie(request):
|
||||
'''Returns the tuple (login, password) read from the authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue