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 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 script), or either you use mod_python and your code runs on a Python interpreter /within/ Apache. In both cases you should able to get form variables and HTTP headers info. But you need to look at the correct doc. Haven't doing that myself, I can't help you further. I suppose you are doing this only to get some HTML generated so you can work on the CSS and the user interface. However, if you plan to invest further in Python: * It might be wise to use an available framework the already do most of the work to handle requests, prepare pages, etc. Django seems to be a well known framework. We have listed some of them here: https://demexp.org/dokuwiki/doku.php?id=en:web_client_development_framework * You can use the Python ONC-RPC interface (Thomas Petazzoni's pydemexp) to talk to the demexp server. Once again, no hurry but for the long term it might be better. Yours, d. _______________________________________________ Demexp-dev mailing list Demexp-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/demexp-dev