[google-appengine] How to use Cookie and Session under App Engine/python

2009-09-11 Thread BornInMeadowMuffins
I'm new to Google App Engine. I am stuck in cookie and session use. I followed the tutorial here: http://webpython.codepoint.net/cgi_cookie_based_sid However, I somewhat don't understand where his cookie files are stored and how do we retrieve the data. I referred the Python Library(the document),

[google-appengine] Unable to update an entity in datastore

2009-09-12 Thread BornInMeadowMuffins
Here is my code: # Database Model class Employee(db.Model): id = db.IntegerProperty(required=True) name = db.StringProperty(required=True) password = db.IntegerProperty(required=True) delivery_type = db.StringProperty(choices=set(["pickup", "mail", "deposit"])) # following variables has b

[google-appengine] Re: How to use Cookie and Session under App Engine/python

2009-09-12 Thread BornInMeadowMuffins
Thank u for promoting your code. I'll see you around. On Sep 12, 11:12 am, GregF wrote: > On Sep 11, 3:37 pm, BornInMeadowMuffins wrote: > > > I just want to know what is the exemplary usage of cookie and session, > > an easy and simple approach. > > Seehttp://cod

[google-appengine] Re: Entity not updating

2009-09-12 Thread BornInMeadowMuffins
I think I got your problem. Thanks for the elegant self-solving. On Sep 13, 7:13 am, Larkin2 wrote: > I think I answered my own question - I'm retrieving a result set > with .gql - to update an entity I need to specifically grab it with > get_by_id() or get_by_key()... > > so for example: > > pr

[google-appengine] Re: Unable to update an entity in datastore

2009-09-12 Thread BornInMeadowMuffins
It has been solved here: http://groups.google.com/group/google-appengine/browse_thread/thread/d8b378828beb726b# But still, what's wrong with the previous code? On Sep 13, 9:09 am, BornInMeadowMuffins wrote: > Here is my code: > # Database Model > class Employee(db.