book = Books.get(Key(self.request.get('id')))
book.name = self.request.get("name")
...
--~--~-~--~~~---~--~~
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
Step 2:
entity = Note.get_by_id(id)
which is actually a shortcut for:
entity = Note.get(db.Key.from_path('Note', id))
or, if you insist on using GQL:
entity = Note.gql('WHERE __key__ = :1',
db.Key.from_path('Note', id)).get()
...but it's less efficient.
Ste