Part of canonical.launchpad.webapp
Function | storm_cache_factory | Return a Storm Cache of the type and size specified in dbconfig. |
Class | BaseDatabasePolicy | Base class for database policies. |
Class | DatabaseBlockedPolicy | IDatabasePolicy that blocks all access to the database. |
Class | MasterDatabasePolicy | IDatabasePolicy that selects the MASTER_FLAVOR by default. |
Class | SlaveDatabasePolicy | IDatabasePolicy that selects the SLAVE_FLAVOR by default. |
Class | SlaveOnlyDatabasePolicy | IDatabasePolicy that only allows access to SLAVE_FLAVOR stores. |
Function | LaunchpadDatabasePolicyFactory | Return the Launchpad IDatabasePolicy for the current appserver state. |
Class | LaunchpadDatabasePolicy | Default database policy for web requests. |
Function | WebServiceDatabasePolicyFactory | Return the Launchpad IDatabasePolicy for the current appserver state. |
Class | ReadOnlyLaunchpadDatabasePolicy | Policy for Launchpad web requests when running in read-only mode. |
Class | WhichDbView | A page that reports which database is being used by default. |
Function | _now | Return current utc time as a datetime with no timezone info. |
This is a global method to allow the test suite to override.