Re: [SQLObject] Multiple UPDATEs being run on 'update' with SQL Object 0.8.1

2007-03-20 Thread Oleg Broytmann
On Tue, Mar 20, 2007 at 10:53:04AM -0300, Jorge Godoy wrote: > Shouldn't both be updated in the same command since I used a ".set()" instead > of updating each attribute separately? I'd expect it to run one command .set() runs as many UPDATEs as there are non-plain setters. ForeignKey is a non

Re: [SQLObject] Multiple UPDATEs being run on 'update' with SQL Object 0.8.1

2007-03-20 Thread Jorge Godoy
Oleg Broytmann <[EMAIL PROTECTED]> writes: > Hello. A simplified version of your program I should have written it myself instead of just copy & paste parts of the code. Sorry. > -- > from datetime import datetime > > class Usuario(SQLObject): > name = StringCol(default=None) > > cl

Re: [SQLObject] Multiple UPDATEs being run on 'update' with SQL Object 0.8.1

2007-03-20 Thread Oleg Broytmann
Hello. A simplified version of your program -- from datetime import datetime class Usuario(SQLObject): name = StringCol(default=None) class TipoFerramenta(SQLObject): descricao = UnicodeCol(default=None) # Auditing incluidoPor = ForeignKey('Usuario', default=None, cascad

[SQLObject] Multiple UPDATEs being run on 'update' with SQL Object 0.8.1

2007-03-19 Thread Jorge Godoy
Hi! For the following code on my controller (auto-wrapped in a transaction by a decorator in a TurboGears project): def update(self, **kwargs): usuario = identity.current.user agora = datetime