[Soap-Python] Multiple decorators

Burak Arslan burak.arslan at arskom.com.tr
Fri Sep 30 13:13:40 CEST 2011


On 30.09.2011 11:33, Dieter Maurer wrote:
> Burak Arslan wrote at 2011-9-29 17:37 +0300:
>> 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.
> To define one own decorators, there is the great "decorator" package
> (on PyPI). It makes it easy to implement signature preserving
> decorators -- often important for things such as pipelining
> several decorators.
>

hey, that just might work, thanks dieter. azur, could you try that?

>
> --
> Dieter



More information about the Soap mailing list