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
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
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
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
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
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
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
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
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,
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
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
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
Hello,
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.
My question is not What am I doing wrong?, but rather How to properly
do that?.
Thanks.
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
Bonjour
Apres consultation de :
http://demexp.ouvaton.org/
qui moffre une belle page vide..
Augustin qui me dit que son client a ete abandonne..
Pourquoi dailleurs ??
http://demexp.org/dokuwiki/doku.php?id=en:web_client_development_framework
Jaimerais savoir quel langage a ete (ou sera)
15 matches
Mail list logo