Hello,

Does anyone have any experience of getting SQLObject to work with py2exe, or can anyone diagnose the following situation :

sqlobject seems to work, but instead of e.g.:

from sqlobject import *
sqlhub.processConnection = connectionForURI('sqlite:/:memory:')

class Foo(SQLObject):
 bar = StringCol()


You have to do:

import sqlobject
sqlobject.sqlhub.processConnection =  \
 sqlobject.connectionForURI('sqlite:/:memory:')

class Foo(sqlobject.SQLObject):
 import sqlobject   # ???
 bar = sqlobject.StringCol()


Not sure yet why the second import statement is necessary, though I do
know that SQLObject is not a normal class (all sorts of metaclass magic
going on under the hood).

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml