[Zope-CMF] Read-only FileStorage and CMF

Bert Vanderbauwhede Bert.Vanderbauwhede@rug.ac.be
Tue, 4 Mar 2003 13:10:49 +0100 (MET)


On Tue, 4 Mar 2003, Raphael Ritz wrote:

>
>
> Bert Vanderbauwhede wrote:
>
> >Hi,
> >
> >I started Zope with a read-only FileStorage.
> >
> Does that mean your 'Data.fs' is read only?
> If so, this will take you nowhere. This file needs to be writable
> by the user under which the Zope process is running. This is
> the file representing the ZODB, Zope's object data base.
> If Zope cannot modify this file heardly anything will work.

No, it means that the FileStorage is opened with read_only set to 1:

% cat /usr/local/zope/custom_zodb.py

import Globals, ZODB.FileStorage
name = "%s/Data.fs" % Globals.data_dir
Storage = ZODB.FileStorage.FileStorage(name, read_only=1)


Bert Vanderbauwhede...
---
"To make it really easy, the Unix commands are named using a Caesar
 cipher, so that folks using a voice synthesizer can control a Unix box
 using the type of sounds that Terence and Philip like to make a lot."