Add _buttons to listMethods
This commit is contained in:
@@ -109,6 +109,9 @@ def dispatch(host, port, protocol, database_name, user, session, object_type,
|
||||
for object_name, obj in pool.iterobject(type=type):
|
||||
for method in obj.__rpc__:
|
||||
res.append(type + '.' + object_name + '.' + method)
|
||||
if hasattr(obj, '_buttons'):
|
||||
for button in obj._buttons:
|
||||
res.append(type + '.' + object_name + '.' + button)
|
||||
return res
|
||||
elif method == 'methodSignature':
|
||||
return 'signatures not supported'
|
||||
|
||||
Reference in New Issue
Block a user