Bugs item #1410910, was opened at 2006-01-20 19:10
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1410910&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: Closed
>Resolution: Fixed
Priority: 5
Submitted By: jt (jt01)
>Assigned to: Oleg Broytmann (phd)
Summary: 0.7.0 __getattr__ should raise AttributeError
Initial Comment:
If 'foo' is not an attribute of obj, obj.q.foo should
catch KeyError and raise an AttributeError.
sqlbuilder.py +362
--------------------------------------------------
return self.FieldClass(self.tableName,
self.soClass.sqlmeta.columns[attr].dbName,
attr)
--------------------------------------------------
I suppose some others __getattr__ have the same problem.
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-02-06 21:23
Message:
Logged In: YES
user_id=4799
Fixed at the revision 1570 in the trunk; backported to the
0.7 branch at the rev. 1571. Thank you!
----------------------------------------------------------------------
Comment By: jt (jt01)
Date: 2006-01-20 19:14
Message:
Logged In: YES
user_id=1002407
and should have default value:
getattr(object, 'method', default)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1410910&group_id=74338
|