Re: [SQLObject] Inheritance strangeness
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Oleg B. <ph...@ph...> - 2005-06-03 09:20:13
|
On Fri, Jun 03, 2005 at 07:05:50PM +1000, ab...@ne... wrote:
> An inherited class whose parent defines a foreign key, can only use that foreign
> key/pointer if they themselves define a data attribute. If the inherited class
> does not contribute a new data attribute, attempting to use the foreign key
> (which is defined by the parent) will generate an attribute error.
I'll look into it.
> from sqlobject.sqlite import builder; SQLiteConnection = builder()
> conn = SQLiteConnection('persontest3.db', debug=False)
Oops! Why not just
conn = connectionForURI("sqlite:/persontest3.db?debug=")
or even
conn = "sqlite:/persontest3.db?debug="
???
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|