On Jan 15, 11:18 am, djidjadji <[email protected]> wrote:
> And deal with the individual item in the next handler
>
> class ItemPage(webapp.RequestHandler):
> def get(self, id):
> id = int(id)
> item = Item.get_by_id(id)
> # rest of the handler
>
Thanks for your help. This works:
class Article(webapp.RequestHandler):
def get(self, id):
id = int(id)
item = Item.get_by_id(id)
...
self.response.out.write("""<a href="%s">%s</a> """ %
(cgi.escape(item.url),
cgi.escape(item.title)))
--
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.