On 23 August 2012 09:30, puercoespin <[email protected]>wrote:
> Hi > > if ""db.person.insert(name='Juan',age=23)"" is equal to > ""db.person[0] = dict(name='Juan',age=23)"" > > how to save the id of the new record in the second case? > In both cases you are working with a dict. Use the first one if you need an id of the record: id = db.person.insert(name='Juan',age=23) Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) --

