Part of canonical.launchpad.webapp.dbpolicy View In Hierarchy
Selects the DEFAULT_FLAVOR based on the request.
| Method | __init__ | Undocumented |
| Method | install | See IDatabasePolicy. |
| Method | uninstall | See IDatabasePolicy. |
| Method | getReplicationLag | Return the replication lag on the MAIN_STORE slave. |
| Method | _hasSession | Is there is already a session cookie hanging around? |
Inherited from BaseDatabasePolicy:
| Method | getStore | See IDatabasePolicy. |
| Method | __enter__ | See IDatabasePolicy. |
| Method | __exit__ | See IDatabasePolicy. |
IDatabasePolicy.
If the request just handled was not read_only, we need to store this fact and the timestamp in the session. Subsequent requests can then keep using the master until they are sure any changes made have been propagated.