from objects import Trial
where Trial is:
from SQLObject import *
_fromDatabase = True
When I try this I'm getting an error
indicating that there is no connection object yet:
File "/<path>/SQLObject.py", line 523, in
for columnDef in
'NoneType' object has no attribute 'columnsFromSchema'
If I set Trial to:
from SQLObject import
every thing seems to work ok, so I don't think its
a problem with the connection. It does take automatic class generation out
of the picture though. Maybe something to do with the order things are
initialized? I suppose that ultimately I should define my classes
manually, so maybe its no big deal.
Also, I noticed that SQLObject.new() method accepts
the connection as a keyword argument, but the standard constructor will only
accept it as the second argument? i.e. u = Trial(1, req.conn) Is
there a more consistent way to pass the connection to various creation
Thanks in advance...