There's no direct equivalent. If you write a utility method you'll want to use a transaction-- that way you won't overwrite an existing entity if one with the given kind and key name already exists.
-Amy On Tue, Nov 8, 2011 at 3:55 PM, _vjy <vijayakumar.subbu...@gmail.com> wrote: > > What is JDO equ. of python datastore operation > 'Model.get_or_insert<http://code.google.com/appengine/docs/python/datastore/modelclass.html#Model_get_or_insert>' > ? > > or, should I write this utility method for my app ? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-appengine/-/VzP8hmrdA3kJ. > 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. > -- 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.