Re: [SQLObject] Col naming in MultipleJoin
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Nick <ni...@dd...> - 2003-05-10 17:33:39
|
On Sat, 2003-05-10 at 08:28, deelan wrote: > this fails: > pn = PhoneNumber.new(phone='666', type='home', PersonId=p.id) > > this works: > pn = PhoneNumber.new(phone='666', type='home', PersonID=p.id) Correct; the parameters in SQLObject methods match to the first argument to Col, the Pythonic column name, not dbName, the column name in the database. > p = Person(1) > pn = PhoneNumber.new(phone='666', type='home', Person=p) That would be preferred for readability. Nick |