More work on xmlrpc stuff, started migrated more code to use errors2 instead of errors

This commit is contained in:
Jason Gerard DeRose
2009-01-22 18:48:21 -07:00
committed by Rob Crittenden
parent 833088955c
commit 244346dbcb
8 changed files with 55 additions and 22 deletions

View File

@@ -48,11 +48,7 @@ class xmlserver(Backend):
self.debug('Received RPC call to %r', method)
if method not in self.Command:
raise CommandError(name=method)
self.info('params = %r', params)
(args, options) = params_2_args_options(params)
self.info('args = %r', args)
self.info('options = %r', options)
self.debug(make_repr(method, *args, **options))
result = self.Command[method](*args, **options)
return (result,) # Must wrap XML-RPC response in a tuple singleton