How to update an existing entity ?
I used db.Expando, but I tried with db.model also. For both its not working.
Class Test(db.Expando):
name = StringProperty()
pagehit = IntegerProperty()
this is what I tried and would like to do
___________________________
test = Test (name = "blah")
if test is not None:
test.pagehit + =1
else:
test = Test()
test.name = "blah"
test.pagehit = 1
test.put()
__________________________
I am not sure even how to make sure an entiry is unique ? (for ex:
here i would like to make name as a unique property for the entiry)
Help appreciated !
Thanks.
--RJ
--
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.