On Mar 23, 11:27 am, Kugutsumen <[email protected]> wrote:
> Same problem here; I starred 844.
>
> In the meantime if I need to check within __init__ if an entity is
> already
> in the datastore I use this ugly workaround:
>
> bool(self.is_saved() or kwds.has_key('_from_entity') and kwds
> ['_from_entity'])
There is a typo, to test if an entity is in the datastore in the
__init__ method, use:
if self.is_saved() or _from_entity:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---