[Soap-Python] Default values for parameters

azurIt azurit at pobox.sk
Mon Sep 26 19:08:38 CEST 2011


Hi,

how can i set default values for arguments ? Standard python way is not working:
@rpc(String, String, _returns=String)
def testf(self, first, second=u"aaa"):
     ....

Thx.

Btw, rpclib seems to not check parameters count. If function is taking two parameters and i send only one, everything is processed without error (and second parameters gets None). The similar thing will happen if i send more than 2 params.

azur


More information about the Soap mailing list