> [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

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to