On 29.09.2011 16:34, azurIt wrote:
is it somehow possible to use multiple decorators with @rpc/srpc ?
Here's the magic from the rpclib.decorator module:
argcount = f.func_code.co_argcount
param_names = f.func_code.co_varnames[arg_start:argcount]
if f is your decorator, the parameter names and numbers are going to be
wrong. so no, use events. look at the relevant example in the source
distribution and read the events section in the manual.
If you're hell bent on using decorators, you can wrap @srpc. you'll most
probably be on your own if you choose that though.
that's going to make a fine FAQ entry btw :)
best,
burak
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap