Re: [web2py] Re: begin a transaction manually ?

2012-01-27 Thread Sebastian E. Ovide
I guess that defining two will work for me... thanks ! On Thu, Jan 26, 2012 at 2:40 PM, Bruno Rocha rochacbr...@gmail.com wrote: maybe if there's a way to .close() the db to be able to define it again. http://zerp.ly/rochacbruno Em 26/01/2012 12:18, Massimo Di Pierro

Re: [web2py] Re: begin a transaction manually ?

2012-01-26 Thread Sebastian E. Ovide
2) yes but not concurrently, unless you have two db objects. Is it possible to clone a db object ? instead of declare 2 (or n) db objects in the model, can I create a new one a controller based on db declared in the model ? -- Sebastian E. Ovide

[web2py] Re: begin a transaction manually ?

2012-01-26 Thread Massimo Di Pierro
You cannot clone it. but can make two. On Jan 26, 3:10 am, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: 2) yes but not concurrently, unless you have two db objects. Is it possible to clone a db object ? instead of declare 2 (or n) db objects in the model, can I create a new one a

Re: [web2py] Re: begin a transaction manually ?

2012-01-26 Thread Bruno Rocha
maybe if there's a way to .close() the db to be able to define it again. http://zerp.ly/rochacbruno Em 26/01/2012 12:18, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: You cannot clone it. but can make two. On Jan 26, 3:10 am, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: 2)

[web2py] Re: begin a transaction manually ?

2012-01-19 Thread Massimo Di Pierro
1) db.commit() closes a transactions and starts a new one. 2) yes but not concurrently, unless you have two db objects. 3) it is the same. On Jan 19, 5:02 pm, sebastian sebastianov...@gmail.com wrote: hi all, 1) is it possible to begin a transaction manually within a controller ? 2) can I