how to get name of function from within function?

Christopher J. Bottaro cjbottaro at alumni.cs.utexas.edu
Mon Jun 6 14:50:32 EDT 2005


<posted & mailed>

Christopher J. Bottaro wrote:

> The problem is:
>>>> c.func_b.__name__
> 'wrapper'
> 
> That messes up SOAPpy's RegisterFunction() method which apparently depends
> on the __name__ of the function to publish it as an available SOAP
> function.
> 
> Any suggestions on how to change the name of c.func_b to 'func_b' instead
> of 'wrapper'?

Nevermind, I looked at the SOAPpy source, they provide a way to manually
specify the SOAP method name that is published.

Thanks anyways,
-- C




More information about the Python-list mailing list