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
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
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
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