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/            p...@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to