This object serves as a hub for connections, so that you can pass in a ConnectionHub to a SQLObject subclass as though it was a connection, but actually bind a real database connection later. You can also bind connections on a per-thread basis.
You must hang onto the original ConnectionHub instance, as you cannot retrieve it again from the class or instance.
To use the hub, do something like:
hub = ConnectionHub()
class MyClass(SQLObject):
_connection = hub
hub.threadConnection = connectionFromURI('...')
The sqlobject module exposes 30 submodules:
See the source for more information.