On Fri, Apr 09, 2010 at 12:34:43PM -0300, Juan Manuel Santos wrote:
> I've been doing some testing. On a Jaunty installation, with most recent
> SQLObject (SVN), it doesn't make a difference if I set fromDatabase as a
> parameter when creating a class or doing a select. If I specify it inside
> the SQLObject class definitions (inside class sqlmeta), I get the same "No
> connection has been defined" but at starting time, when the first import of
> the class is being done.
No, you get a different error. Really, the error message is the same
'cause it came from the same __get__, but the code that triggered call to
that __get__ is different. I think I understand what is going on.
> With the SQLObject version that comes with Jaunty (0.10.2-3), fromDatabase
> is not recognized as a parameter to be passed at object creation (and I
> would assume for select isn't either, though I haven't tested).
fromDatabase can only be used as a variable (actually, constant) of the
inner sqlmeta because it only affects class creation.
Oleg.
--
Oleg Broytman http://phd.pp.ru/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|