[Freeipa-devel] argument passing
Kevin McCarthy
kmccarth at redhat.com
Wed Aug 22 15:32:47 UTC 2007
Rob Crittenden wrote:
> The problem is optional arguments. Things will blow up if optional
> arguments are empty.
>
> One solution is to require a value for every argument over XML-RPC.
I think this solution is probably the best. Allowing optional arguments
is a minor convenience being traded for a horrible inconvience on the
xmlrpc server side. It's not too arduous to require a developer to type
all the arguments.
If we want to allow None, I think the idea of passing "__NONE__" and
translating into None on the server side isn't bad. Or perhaps an empty
list, []?
Both of these are better than trying to understand that function you
wrote. ;-)
-Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070822/fb289ff6/attachment.bin>
More information about the Freeipa-devel
mailing list