I am having no luck making with self.request.get() and None. I have
found the following references, but they do not pan out for me: empty
user inputs are not detected by the "if" clause.  Please help.

http://code.google.com/appengine/docs/python/tools/webapp/requestdata.html
http://code.google.com/appengine/articles/update_schema.html

<form method="get" action="/addnextprev">
   <input type="text" name="nextplace"  value=""/>
    Next place (only Next or Prev, not both)
    <br />
   <input type="text" name="prevplace"  value=""/>
    Prev place (only Next or Prev, not both)
  <br />
    <input type="submit" value="Submit" />
</form>


class addNextPrev(webapp.RequestHandler):
    def get(self):
        nextplace_id = self.request.get("nextplace", None)
        prevplace_id = self.request.get("prevplace", None)
        if ((prevplace_id is None) and (nextplace_id is None)):
              print "you must supply either a Next or Prev place"
        else:
              print "we are ready to go now"


How can this sort of thing be tested in the gae interactive console,
for example?

Thanks in advance,

Brian in Atlanta
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to