Re: [SQLObject] Inheritance looses column
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Tobias W. <to...@gm...> - 2009-09-07 11:35:51
|
[forgot to "Reply All"] On 07.09.2009, at 11:15, Oleg Broytmann wrote: > I don't think it's inconsistent. Well, getting a parent's column sometimes works and sometimes doesn't (depending on the cache?) > Any property is free to raise any exception. During normal operation descriptors are only supposed to raise AttributeError (which this one does). Whether reading a field at that point constitutes an allowed operation depends on the documentation of _init. I didn't find much, but then it's a bit hard to search for ;) > Looks like a bug in that library. http://bugs.python.org/issue1785 This solves my problem! I'm still not sure if SQLObject is behaving correctly, though. What's the point of _init if you can't access data yet? |