Re: using request variable in python web program

2007-10-22 Thread sami
See the library reference for information on how to get the value of form/request parameters from the CGI environment: http://docs.python.org/lib/node561.html Paul Thanks again Paul - now I can see that the request object is a string of name/value pairs that occurs after a ? in a url e.g.

Re: using request variable in python web program

2007-10-22 Thread Paul Boddie
On 22 Okt, 10:34, sami [EMAIL PROTECTED] wrote: See the library reference for information on how to get the value of form/request parameters from the CGI environment: http://docs.python.org/lib/node561.html Paul Thanks again Paul - now I can see that the request object is a string of

Re: using request variable in python web program

2007-10-22 Thread Gabriel Genellina
En Mon, 22 Oct 2007 05:34:55 -0300, sami [EMAIL PROTECTED] escribi�: Thanks again Paul - now I can see that the request object is a string of name/value pairs that occurs after a ? in a url e.g. url.com/index.cgi?name=samilang=python - is that correct? Googling for this information is useless

Re: using request variable in python web program

2007-10-22 Thread sami
Not exactly - this is the query string part of the URI. Request and Response are the two messages defined by the HTTP protocol. When you type a URL or click on a link or press a button in a page, your browser builds the appropiate Request message and sends it to the server. After processing,

Re: using request variable in python web program

2007-10-21 Thread Paul Boddie
On 21 Okt, 21:59, sami [EMAIL PROTECTED] wrote: Thanks a ton Paul for the information. I am using CGI and my host (nearlyfreespeech.net) does not have django hosting - and being mainly a C/dekstop apps programmer I really don't want to learn the whole MVC concept and its implementation (and

Re: using request variable in python web program

2007-10-21 Thread sami
However, it shouldn't be too bad to set Django up, really, especially if people have taken some time to explain something very close to what you want to do using Django. Moreover, there's a Google group (django- users) where you could ask general questions, and I imagine that people will be

using request variable in python web program

2007-10-20 Thread sami
Hi I am trying to write a facebook application in python - I have been programming simple desktop applications till now and am not really familiar with web apps Pyfacebook is the wrapper for the REST based Facebook API - there is a simple example for its usage as shown below: def

Re: using request variable in python web program

2007-10-20 Thread Paul Boddie
On 21 Okt, 00:21, sami [EMAIL PROTECTED] wrote: def simple_web_app(request, api_key, secret_key): fb = Facebook(api_key, secret_key, request.GET['auth_token']) fb.auth_getSession() A Django-based tutorial and source is available