Re: [SQLObject] Col naming in MultipleJoin
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-05-12 01:58:25
|
On Sat, 2003-05-10 at 13:40, Luke Opperman wrote: > My question is: what would you prefer the initialization for > foreignKey's be? I'll throw out my idea, which is based on the fact > that in general, we specify the *python* attribute name as the column > name, and the dbName is optional: > > ForeignCol('person', foreignKey='Person') > > would assume (based on Style object?) the dbname is person_id, and the > direct ID python access stays as "personID" (since I think there are > cases where there's justification for retaining immediate access to > the actual key values). I intended to do something like this. Or maybe just: KeyCol('Person') Both person and personID then being implied. I'm not sure whether I should just replace KeyCol, or create a ForeignKey or ForeignCol class. I created a ForeignKey class in CVS, at least for now. Ian |