Re: [SQLObject] MultipleJoin with irregular naming

2016-11-10 Thread Oleg Broytman
Hi! On Thu, Nov 10, 2016 at 04:12:49PM +0100, franz wrote: > I have two tables whose names I chose by using sqlmeta. > > class Person(SQLObject): > class sqlmeta: > table = 'city_person' > name = StringCol() > pets = MultipleJoin('Animal') > > class

Re: [SQLObject] MultipleJoin

2008-08-12 Thread Luis Javier Peris
Ok, it's solved using joinColumn. Thanks. Greetings. 2008/8/12 Oleg Broytmann <[EMAIL PROTECTED]> > On Tue, Aug 12, 2008 at 06:18:39PM +0200, Luis Javier Peris wrote: > > I'd like to know if there is a restriction using inheritance about > > multiplejoin function because I'm getting an error an

Re: [SQLObject] MultipleJoin

2008-08-12 Thread Oleg Broytmann
On Tue, Aug 12, 2008 at 06:18:39PM +0200, Luis Javier Peris wrote: > I'd like to know if there is a restriction using inheritance about > multiplejoin function because I'm getting an error and I don't know why. > I've the following code: > > class Question(InheritableSQLObject): > filename = S

Re: [SQLObject] MultipleJoin-woes

2008-02-26 Thread Oleg Broytmann
On Tue, Feb 26, 2008 at 01:33:41PM +0100, Diez B. Roggisch wrote: > class A(SQLObject): > bs = MultipleJoin("B") > > class B(SQLObject): > an_a = ForeignKey("A") > > I'd like the idea of this becoming a bit more magic, and in case of ambiguity > at least more in the Python-world than in

Re: [SQLObject] MultipleJoin or not?

2007-03-06 Thread William F Pearson III
Ok, I understand. With MultipleJoin the Person.developer method returns a list of the projects, that Person is the developer of. Without it MultipleJoin Person('Project') that method is not available. I'm trying to add some features to WhatWhat Status that will be beneficial to my organization. Thi

Re: [SQLObject] MultipleJoin or not?

2007-03-06 Thread Oleg Broytmann
Hello! On Tue, Mar 06, 2007 at 10:15:27AM -0600, William F Pearson III wrote: > I'm fairly new to SQLObject Welcome! > The MultipleJoin method is not necessary, but is it > beneficial? It is! See the program and its output: class Person(SQLObject): firstName = StringCol() lastN

Re: [SQLObject] multiplejoin and default order on nullable datetime column

2006-01-16 Thread Oleg Broytmann
Hi! On Thu, Jan 12, 2006 at 10:25:51PM +0100, Jan-Wijbrand Kolman wrote: > TypeError: can't compare datetime.date to NoneType > > possible patch: > > --- src/SQLObject-0.7.0-orig/sqlobject/joins.py 2005-10-02 Applied at the revision 1515 to the trunk. Backported to the 0.7-branch. Thank