Re: [Demexp-dev] Questions

2007-10-19 Par sujet Lyu Abe
Hi, import cgi form = cgi.FieldStorage() if form.has_key[login] ... But it didn't seem to work. Any suggestions? It can't work because those two mode are incompatible. Either you are running a CGI script (i.e. a Python script that is launch each time Apache handles an URL pointing to this

Re: [Demexp-dev] Questions

2007-10-18 Par sujet David MENTRE
Hello Lyu, 2007/10/18, Lyu Abe [EMAIL PROTECTED]: I had to install mod python in order to make it work with it. [...] Also, I tried to retrieve the login and password from the initial index.html using import cgi: import cgi form = cgi.FieldStorage() if form.has_key[login] ... But it

Re: [Demexp-dev] Questions

2007-10-18 Par sujet Lyu Abe
David, Yep, use [::-1] operator ([:] operator with a negative step): l=[1,2,3,4] for i in l[::-1]: print i 4 3 2 1 Explanation in the Python library doc: http://docs.python.org/lib/typesseq.html The Python doc (http://docs.python.org/) is very useful. Most of the time, the thing you

Re: [Demexp-dev] Questions

2007-10-17 Par sujet David MENTRE
Hello Lyu, Lyu Abe [EMAIL PROTECTED] writes: can retieve the max number of questions. My PHP code is quite similar: $message-xmlrpcmsg('max_question_id', $cookie); $max_Q_ret = $server-send($message); print $max_Q_ret-value(); You have made several errors in this code: * In

Re: [Demexp-dev] Questions

2007-10-17 Par sujet David MENTRE
David MENTRE [EMAIL PROTECTED] writes: You have made several errors in this code: * In $message-xmlrpcmsg('max_question_id', $cookie);, you need to create a *new* xmlrpcmsg. So you need to use some code like In fact, I seems that the above code was sending the previous $message doing the

Re: [Demexp-dev] Questions

2007-10-17 Par sujet Lyu Abe
Hi David, Thanks for your helpful message! In such a case, please provide the *exact* and *complete* code you are using (like my example above). Otherwise it is quite complicated for me to understand what is the issue. Okay. Do you really want to use PHP? :-) Not necessarily. That's

Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Hello Lyu, 2007/10/16, Lyu Abe [EMAIL PROTECTED]: Diogene suggested to me to take a look at Augustin's code under Dupral (link or location?). http://drupal.org/project/demexp This is in the wiki. ;-) https://demexp.org/dokuwiki/doku.php?id=en:start#drupal_module_for_demexp I need more time

Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Lyu, 2007/10/16, David MENTRE [EMAIL PROTECTED]: http://drupal.org/project/demexp You can look at function _contact_demexp_server() and other functions that call it. However, from what I've read Augustin is using the xmlrpc() standard call from PHP and not the xmlrpc external module, so the

Re: [Demexp-dev] Questions

2007-10-16 Par sujet David MENTRE
Hello, 2007/10/16, Lyu Abe [EMAIL PROTECTED]: Diogene told me that he'd rather send a bunch of questions about the client after he's explored several things. I personnally think that asking questions regularly is safer. It avoids going too deep onto a wrong paths. What do you think? Well,

Re: [Demexp-dev] Questions

2007-10-16 Par sujet Lyu Abe
Hi David, You can look at function _contact_demexp_server() and other functions that call it. However, from what I've read Augustin is using the xmlrpc() standard call from PHP and not the xmlrpc external module, so the API is probably quite different. I did look at the

Re: [Demexp-dev] Questions

2007-10-15 Par sujet Lyu Abe
Hi David, I'd like to know how I can retrieve questions, answers, votes, etc. I tried to use the question_info method, but I do not understand the server's reply because I only got a int value. No, the question_info() method returns a quite complex data structure. Here is part of its XDR

Re: [Demexp-dev] Questions

2007-10-14 Par sujet David MENTRE
Hello Lyu, Lyu ABE [EMAIL PROTECTED] writes: I'd like to know how I can retrieve questions, answers, votes, etc. I tried to use the question_info method, but I do not understand the server's reply because I only got a int value. No, the question_info() method returns a quite complex data

Re: [Demexp-dev] Questions..

2007-08-01 Par sujet David MENTRE
Bonjour, [ Note: This is an English speaking mailing list. I reply in French because its quicker but please try to speak English on demexp-dev, except if this is an issue for you, of course. English summary: * Why Augustin module is no longer used? Because Augustin and myself did not agree on