Re: [SQLObject] Understanding One-to-Many Relationships
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-08-03 08:43:06
|
On Tue, Aug 02, 2005 at 06:08:35PM -0500, Ian Bicking wrote: > > peeps = Person.selectBy(Person.q.firstName="John", Address.q.zip=22182) > > That's syntactically incorrect, no? Shouldn't it be... > > Person.select((Person.q.firstName=='John') > & (Address.q.zip==22182) > & (Person.q.id==Address.q.personID)) Ah, yes. I was rush to show the q-magic and forgot to AND those expressions. Sorry. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |