On Fri, May 7, 2010 at 12:56 AM, Guilherme Salgado <[email protected]> wrote:
> We could do what you suggest, but that'd require teaching the librarian > about read-only stores as well, as I think we're using the read-only.txt > file to switch the librarian mode as well (although for the librarian we > need a restart). We may need to do similar changes on other services > that have access the DB, but I'm not sure if there's any. That just means we need to make the default database policy (MasterDatabasePolicy) aware of read-only.txt and hand out the desired Stores, or install a ReadOnlyModeDatabasePolicy on startup if read-only.txt exists. Everything in Launchpad retrieves its stores via the IStoreSelector and the currently installed IDatabasePolicy so this should work fine. -- Stuart Bishop <[email protected]> http://www.stuartbishop.net/ _______________________________________________ Mailing list: https://launchpad.net/~launchpad-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~launchpad-dev More help : https://help.launchpad.net/ListHelp

