Re: [SQLObject] xxx = ForeignKey (this is at least a doc bug)

2007-03-20 Thread rdmurray
On Tue, 20 Mar 2007 at 20:28, [EMAIL PROTECTED] wrote: > Which still means there's a documentation bug, but I'm not sure > what the fix would be :) :) Actually, thinking about it, what would have saved me the half day would be if the error message I got had mentioned that it was related to the mul

Re: [SQLObject] xxx = ForeignKey (this is at least a doc bug)

2007-03-20 Thread rdmurray
On Tue, 20 Mar 2007 at 19:20, [EMAIL PROTECTED] wrote: > I just spent half a day banging my head against a weird error I was > getting from my model when trying to access a MultipleJoin. I built a > simple test case that worked fine, and by stripping my original model > down piece by piece until i

[SQLObject] xxx = ForeignKey (this is at least a doc bug)

2007-03-20 Thread rdmurray
I just spent half a day banging my head against a weird error I was getting from my model when trying to access a MultipleJoin. I built a simple test case that worked fine, and by stripping my original model down piece by piece until it looked like the working case I finally found my bug. My Fore

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

Re: [SQLObject] what is the best way to make an EncryptedCol

2007-03-20 Thread Oleg Broytmann
Hello. The real conversion is performed by a validator. So for a new column class you need a validator class, an SOCol class that will create the validator, and a Col class that will be used as a column description. The best examples are in col.py module. See how PickleCol is implemented. O

Re: [SQLObject] Broken links: Versioning.

2007-03-20 Thread Leandro Lucarella
Oleg Broytmann, el 20 de marzo a las 10:55 me escribiste: > Hello! > > On Mon, Feb 12, 2007 at 05:36:23PM -0300, Leandro Lucarella wrote: > > Hi! This link seems to be broken: > > http://sqlobject.org/Versioning.html > > > > Same for http://sqlobject.org/sqlobject-architecture.html. > >They