You could use the URL dispatcher to check for validity of the passed
id by making the id part of the URL

http://me-for-president.appspot.com/item/1

in the code

class ItemPage(webapp.RequestHandler):
    def get(self, id):
        id = int(id)
        # rest of the handler

application = webapp.WSGIApplication([('/item/(\d+)', ItemPage)],
                                     debug=True)

def main():
    run_wsgi_app(application)


Use some sort of template engine. Much easier if the site or pages gets bigger.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to