Hi there, Sorry for the late answer, please use spyne ml.
http://spyne.io/docs/2.9/faq.html#is-it-possible-to-use-other-decorators-with-rpc-srpc hth, burak On 03/17/15 22:47, Patricio Stegmann Gmail wrote: > Hello, > I am trying to decorate (add function call logging) on a webservice > created with spyne. See below: > > def a_decorator_passing_arbitrary_arguments(function_to_decorate): > # The wrapper accepts any arguments > def a_wrapper_accepting_arbitrary_arguments(*args, **kwargs): > print args, kwargs > function_to_decorate(*args, **kwargs) > return a_wrapper_accepting_arbitrary_arguments > > class SomeDummyService(ServiceBase): > @a_decorator_passing_arbitrary_arguments > @srpc(String _returns=String) > def Hello(name='dude'): > return "Hello "+str(name) > > When trying to start the app/service, I get this error: > > exception: reduce() of empty sequence with no initial value > > Could anyone give me a tip ? > > > _______________________________________________ > Soap mailing list > [email protected] > https://mail.python.org/mailman/listinfo/soap
_______________________________________________ Soap mailing list [email protected] https://mail.python.org/mailman/listinfo/soap
