Bugs item #1494674, was opened at 2006-05-25 08:56
Message generated for change (Comment added) made by simonwittber
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1494674&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Wittber (simonwittber)
Assigned to: Nobody/Anonymous (nobody)
Summary: attribute names ignored on join columns.
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Simon Wittber (simonwittber)
Date: 2006-05-25 09:00
Message:
Logged In: YES
user_id=598842
I've just checked out SVN trunk, and this problem has been
fixed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1494674&group_id=74338
|