Add _buttons to listMethods

This commit is contained in:
Cédric Krier
2012-10-10 12:53:51 +02:00
parent 4c223a2b64
commit e2034cfcf3
+3
View File
@@ -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'