[google-appengine] Re: Question about transactions and Entity Groups

2009-03-30 Thread ryan
On Mar 19, 3:01 pm, Anonymous Coderrr wrote: > > The documentation for entity-groups and transactions say that entities > must all be in the same eneity group for transaction operations to > work. But it does not specifically say how to put entities in the > same entity group, other than some me

[google-appengine] Re: Question about transactions and Entity Groups

2009-03-19 Thread Anonymous Coderrr
Data integrity - I want this to be atomic.. I do not want either A or the list of B's saved if the other fails to save. On Mar 19, 3:16 pm, djidjadji wrote: > Why do you need a transaction for this operation? > To create B objects that are children of some A  use > > a=A() > a.put()  # create

[google-appengine] Re: Question about transactions and Entity Groups

2009-03-19 Thread djidjadji
Why do you need a transaction for this operation? To create B objects that are children of some A use a=A() a.put() # create the parent object bObjs = [B(parent=a, somestring=s) for s in somelist] db.put(bObjs) 2009/3/19 Anonymous Coderrr : > > Hi, > > The documentation for entity-groups and t