[Freeipa-devel] argument passing

Rob Crittenden rcritten at redhat.com
Wed Aug 22 15:47:23 UTC 2007


Kevin McCarthy wrote:
> 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, []?

We need to support non-python clients too so I'd like to keep this as 
straightforward as possible. I prefer __NONE__ or something like it 
(perhaps _N_ to be less verbose).

> Both of these are better than trying to understand that function you
> wrote.  ;-)

I tried to warn you guys.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20070822/74214595/attachment.bin>


More information about the Freeipa-devel mailing list