[ZODB-Dev] Re: [Zope-CMF] Read-only FileStorage and CMF
Jeremy Hylton
jeremy@zope.com
04 Mar 2003 10:31:20 -0500
On Tue, 2003-03-04 at 08:04, Toby Dickenson wrote:
> It would be nice if zodb made the read-only state available to application
> code, so it can avoid this type of gratuitous write.
>
> On Tuesday 04 March 2003 12:32 pm, Jens Vagelpohl wrote:
> > the CMF will try to save the time a user logs in to keep track of the
> > last time you log in. you cannot do that with a read-only ZODB unless
> > you find and eliminate the code that tries to save the login time.
The storage exports an isReadOnly() predicate. We should probably
thread that through to either the database or the connection. Which
would be more convenient for a Zope application?
Jeremy