[SQLObject] Re: object has no attribute
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Cyril E. <cy...@de...> - 2004-08-31 11:54:15
|
Ian Bicking wrote:
> MJR wrote:
>
>> Any idea why the one-to-many example from SQLObject documentation
>> works with
>> addresses=MultipleJoin('Address'), but doesn't with
>> addr=MultipleJoin('Address').
>
>
> That seems to be a bug -- SQLObject simply ignores the attribute you
> use. Well, it's hard, because there's sometimes more than one method,
> as in RelatedJoin (with add and remove).
>
Yes,
I have the same problem with the svn version and take a look inside
joins.py/SOMultipleJoin.__init__ method. I see that now you use the
joinMethodName parameter to create the property name. I understand that
but it is not very intuitive. Someone intends that the property name of
created object is the one he writes in his code. Why not use this name
for creating properties and methods ?
Cyril Elkaim
|