#175 attribute names ignored on join columns.

closed-out-of-date
General (125)
5
2006-06-07
2006-05-25
No

This is using python2.4-sqlobject_0.6-1ubuntu2_all.deb

in a module called dbo.py:

__connection__ =
connectionForURI("postgres://xxx:xxx@127.0.0.1/xxx")

class Worker(SQLObject):
name = StringCol(length=128, alternateID=True)
time_entries = MultipleJoin('TimeEntry')
timesheets = MultipleJoin('Timesheet')
aliases = MultipleJoin('Alias')
department = ForeignKey('Department')

>>> import dbo
>>> w = dbo.Worker.get(1)
>>> [i for i in dir(w) if "time" in str(i)]
['_SO_get_timeEntrys', '_SO_get_timesheets',
'_get_timeEntrys', '_get_timesheets', 'timeEntrys',
'timesheets']
>>>

Notice that my time_entries attribute in the Worker
class has been ignored, and replaced with a
'timeEntrys' attribute.

Discussion

  • Simon Wittber

    Simon Wittber - 2006-05-25

    Logged In: YES
    user_id=598842

    I've just checked out SVN trunk, and this problem has been
    fixed.

     
  • Oleg Broytman

    Oleg Broytman - 2006-06-07
    • assigned_to: nobody --> phd
    • status: open --> closed-out-of-date
     

Log in to post a comment.