[google-appengine] Re: get_or_insert: Was it get or insert?

2009-09-21 Thread ryan
...and consider starring this issue: http://code.google.com/p/googleappengine/issues/detail?id=1030 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to goo

[google-appengine] Re: get_or_insert: Was it get or insert?

2009-09-20 Thread Sylvain
Check this cookbook : http://appengine-cookbook.appspot.com/recipe/efficient-use-of-get_or_insert/?id=ahJhcHBlbmdpbmUtY29va2Jvb2tylgELEgtSZWNpcGVJbmRleCI8YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5oZEdWbmIzSjVJZ2xFWVhSaGMzUnZjbVVNDAsSBlJlY2lwZSI9YWhKaGNIQmxibWRwYm1VdFkyOXZhMkp2YjJ0eUZ3c1NDRU5

[google-appengine] Re: get_or_insert: Was it get or insert?

2009-09-20 Thread Robin B
You can view the source of get_or_insert and see that it only returns the entity: @classmethod def get_or_insert(cls, key_name, **kwds): def txn(): entity = cls.get_by_key_name(key_name, parent=kwds.get ('parent')) if entity is None: entity = cls(key_name=key_name, **k