Hello,
I am trying to decorate (add function call logging) on a webservice
created with spyne. See below:
defa_decorator_passing_arbitrary_arguments(function_to_decorate):
# The wrapper accepts any arguments
defa_wrapper_accepting_arbitrary_arguments(*args, **kwargs):
printargs, kwargs
function_to_decorate(*args, **kwargs)
returna_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