> [skip]
>
>> "No connection has been defined for this thread "
>> AttributeError: No connection has been defined for this thread or process
>>
>
> fromDatabase works at the class creation time and hence requires that
> the connection is created before the class is being created:
>
> sqlhub.processConnection = connectionForURI(...)
> class Test_Create2(SQLObject):
> ...
>
>
thanks Oleg,
that seems to work:
but now it complains it can't open the database
def makeConnection(self):
if self._memory:
return self._memoryConn
print 'PPPPP',self.filename
return sqlite.connect(self.filename, **self._connOptions)
prints:
PPPPP /D:/Data_Python_25/support/test_vl.db
now I think there's a slash too much :-(
Now I wonder, is SQLObject suited for MS-Windows ?
Ok, let's try a relative path, then it prints
PPPPP /test_vl.db
still a slash too much I guess, but it does come further :
ValueError: The table test__create2 ws not found in the database. Load
failed
Now it's creating an extra underscore ???
Any suggestions ?
thnaks,
Stef Mientki
|