A class's __init__() constructor gets called whether you are creating
a new db.Model object in memory for the first time, or retrieving an
existing entity from the datastore.

Is there some accepted way for knowing which case you are in from
within the __init__ call?

If retrieving from the datastore, I don't want to set any values.  But
how do I know?  Should I call object.is_saved?  Is there a better way
of handling this?
--~--~---------~--~----~------------~-------~--~----~
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