JDO equ. of python datastore operation 'Model.get_or_insert'

10 views
Skip to first unread message

Vijayakumar Subburaj

unread,
Nov 7, 2011, 11:55:21 PM11/7/11
to google-a...@googlegroups.com

What is JDO equ. of python datastore operation 'Model.get_or_insert' ?

or, should I write this utility method for my app ?

Amy Unruh

unread,
Nov 8, 2011, 4:47:34 PM11/8/11
to google-a...@googlegroups.com
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 <vijayakuma...@gmail.com> wrote:

What is JDO equ. of python datastore operation '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-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages