Package turbogears :: Module database :: Class PackageHub

Class PackageHub

source code

object --+
         |
        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 TurboGears config 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
 
__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__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, packagename)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)