From: michelts <mic...@gm...> - 2005-08-17 13:06:49
|
Hi, I check the code, it seems ok, I run test_SingleJoin.py without errors and in this file there is a class that uses joinColumn attribute. Can you send some piece of code to raise the error? I done a fix in SingleJoin, not related to this problem, see below: def __init__(self, makeDefault=3DFalse, **kw): SOMultipleJoin.__init__(self, **kw) self.makeDefault =3D makeDefault def __init__(self, **kw): self.makeDefault =3D kw.pop('makeDefault', False) SOMultipleJoin.__init__(self, **kw) I changed the constructor, it expected the makeDefault attribute before the other attributes, I changed this to the second alternative above: There is a patch attached... On 8/17/05, michelts <mic...@gm...> wrote: > Hi, >=20 > I will check now, soon I will give a reply ;) > regards, >=20 > On 8/17/05, Oleg Broytmann <ph...@ma...> wrote: > > On Tue, Aug 16, 2005 at 08:34:53PM -0500, Randall Smith wrote: > > > I'm using the SingleJoin from svn and I think this may be a bug. > > > > > > I'm using SingleJoin like this: > > > > > > individual =3D SingleJoin('Individual', joinColumn=3D'tinlgent_is_num= ber') > > > > > > But it is not taking the joinColumn. Below is output from the traceb= ack. > > > > > > self.soClass.sqlmeta.columns[attr].dbName, > > > KeyError: 'tinlgentIsNumber' > > > > > > This works with MultipleJoin, but not SingleJoin > > > > I'd like to hear from the author of SingleJoin about this bug. > > > > Oleg. > > -- > > Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.= ru > > Programmers don't die, they just GOSUB without RETURN. > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Pract= ices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing &= QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5= sf > > _______________________________________________ > > sqlobject-discuss mailing list > > sql...@li... > > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > > >=20 >=20 > -- > Michel Thadeu Sabchuk > Curitiba - Brasil >=20 --=20 Michel Thadeu Sabchuk Curitiba - Brasil |