Package turbogears :: Module database :: Class PackageHub
[hide private]

Class PackageHub

source code


Transparently proxies to an AutoConnectHub for the URI that is appropriate for this package. A package URI is configured via "packagename.dburi" in the global CherryPy 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.

Instance Methods [hide private]
 
__get__(self, obj, type) source code
 
__getattr__(self, name) source code
 
__init__(self, packagename)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__set__(self, obj, type) source code
 
set_hub(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, packagename)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)