Thread: [SQLObject] Should MultipleJoin really return a list?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Markus G. <m.g...@gm...> - 2007-08-20 16:52:45
|
Hi, class Person(SQLObject): ... addresses = MultipleJoin('Address') then >>> p.addresses [] So p.addresses returns a list. Should p.addresses really pull out all data? Wouldn't it be better if it returns a SelectResults object similar to select() and selectBy()? Kind regards, Markus |
From: Oleg B. <ph...@ph...> - 2007-08-20 17:01:05
|
On Mon, Aug 20, 2007 at 06:52:41PM +0200, Markus Gritsch wrote: > Wouldn't it be better if it returns a SelectResults object > similar to select() and selectBy()? SQLMultipleJoin does that. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |
From: Markus G. <m.g...@gm...> - 2007-08-20 18:33:57
|
2007/8/20, Oleg Broytmann <ph...@ph...>: > On Mon, Aug 20, 2007 at 06:52:41PM +0200, Markus Gritsch wrote: > > Wouldn't it be better if it returns a SelectResults object > > similar to select() and selectBy()? > > SQLMultipleJoin does that. Thank you very much. I simply was not aware of these SQLxxxJoins. Kind regards, Markus |