[google-appengine] Re: Using boolean information in the URL string..?

2009-05-14 Thread Adam
leaving off the =value part of the name=value pair will not prevent name from being included in your dictionary of GET query parameters. You should be able to use something like: if isthere in request.params.keys(): # isthere is present else: # isthere is not present to check for it.

[google-appengine] Re: Using boolean information in the URL string..?

2009-05-14 Thread Sylvain
or do this http://example.appspot.com/?propect=22isthere=0 or http://example.appspot.com/?propect=22isthere=1 then you do something like that isthere = req.get('isthere','1') == '1' Then you can get a boolean true (default)/false On 14 mai, 22:04, Adam adam.crossl...@gmail.com wrote: leaving

[google-appengine] Re: Using boolean information in the URL string..?

2009-05-14 Thread codingGirl
I already happy if I do not violate any URL syntax specifications by just writing ishere Where can I find the specification that says I do it correctly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App

[google-appengine] Re: Using boolean information in the URL string..?

2009-05-14 Thread Nick Johnson (Google)
You want RFC 1738 (Uniform Resource Locators): http://www.faqs.org/rfcs/rfc1738.html and section 3.2 of RFC 2616 (HTTP): http://www.faqs.org/rfcs/rfc2616.html Neither spec actually requires that the query string take a particular form, other than specifying what characters are valid in that part