Re: [SQLObject] MultipleJoin inactive in version 0.6
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Max I. <ma...@uc...> - 2004-11-02 11:32:35
|
Nigel King wrote: > Hi, > The relation in MultipleJoin does not seem to work in version 0.6. > The following simplified program gives the Traceback error below Been there. Add joinColumn argument: > =======temp.py======= > from sqlobject import * > > #conn = MySQLConnection(user='nigelk', db='music') > conn = 'mysql://nigelk@localhost/music' > > class Artist(SQLObject): > _connection = conn > Name = StringCol() > titles = MultipleJoin('TapeTitle') titles = MultipleJoin('TapeTitle', joinColumn='tape_title_id') > class TapeTitle(SQLObject): > _connection = conn > artist = ForeignKey('Artist') > Title = StringCol() > > worked under 0.5.2 I understand that we now need get although this was > not obvious in the documentation IMO, either the docs must be updated or, better yet, SQLobject should somehow figure out that joinedColumn argument by itself. |