Latest Version: 0.9.6.2

PackageHub

Transparently proxies to an AutoConnectHub for the URI that is appropriate for this package. A package URI is configured via "packagename.dburi" in the Paste ini file settings. If there is no package DB URI configured, the default (provided by "sqlobject.dburi") is used.

The hub is not instantiated until an attempt is made to use the database.

If pool_connections=False, then a new database connection will be opened for every request. This will avoid problems with database connections that periodically die.


Methods

f __get__(self, obj, type) ...

f __init__(self, packagename, dburi=None, pool_connections=True) ...

f __set__(self, obj, type) ...

f set_hub(self) ...

See the source for more information.

Top