I've got many existing SQLObject classes that I would like to use in
TurboGears. They are designed with no connection specified so that
they automatically pick up sqlobject.sqlhub. I'm new to TG, so please
take into consideration my ignorance. I looked at AutoConnectHub and
PackageHub. It looks like I have to use one of these two with my
SQLObject classes to get them to work.
I've managed to get this to work like so:
In Model.py
hub = PackageHub("mypackage")
MySQLObjectClass._connection = hub
Is this a good way to set the connection?
Randall