Re: question: method return status values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Luca Foppiano wrote:
On Mon, 2008-06-09 at 10:46 -0400, Michael DeHaan wrote:

Generally all methods in an API /are/ going to have different things they return, because
this is how API's work.

ok

I tried to modify my local installation but I found some troubles
because some methods don't need a status, I guess we can create a fake
of return status for these methods. what do you think?

for example when a method don't require to have a status, return
everytime 0 as status value.

Are there examples of methods not returning (i.e. returning None)? Since some XMLRPC clients don't return None (it's not part of the language specification), they should be modified to return 0.

Well, you are also doing some heinous evil things like parsing the return from the command line (per your previous post). Things would get much easier if you use XMLRPC directly and we work on getting that XMLRPC API into the overlord over local socket. I'd like to see that happen first from you guys before we see whether "API standardization" is neccessary, because I imagine parsing Func is extremely fragile and the cause of most of your pain there.

uhm, you are right...

thanks for feedback

luca


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux