patches for @service.jsonrpc and exportclasses, thanks niphlod

This commit is contained in:
mdipierro
2012-11-15 13:40:04 -06:00
parent 1425a46c00
commit a63b8ca9ca
3 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -4244,7 +4244,7 @@ class Service(object):
if not method in methods:
return return_error(id, 100, 'method "%s" does not exist' % method)
try:
s = methods[method](*params)
s = methods[method](**params)
if hasattr(s, 'as_list'):
s = s.as_list()
return return_response(id, s)