[Zope] Re: zope.conf read-only settings

Tres Seaver tseaver at palladion.com
Mon Oct 17 08:10:43 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

S.Hayles wrote:
> 
> On Fri, 14 Oct 2005, Chris Withers wrote:
> 
>> Steven Hayles wrote:
>>
>>>
>>> AFAICS the directives zserver-read-only-mode and read-only-database
>>> just set the environment value ZOPE_READ_ONLY and no change in ZOPE's
>>> operation results. Am I right? This is ZOPE 2.7.7
>>
>>
>> Not really sure what you're asking?
>> Did you try these and find they made no difference?
> 
> 
> Yes, and I've looked at the code and can't see any way they can make a
> difference.
> 
> Wondered whether anyone else knew anything about these directives (old
> or future functionality?) and whether I was right in thinking they
> didn't do anything. If they really don't and are never intended to do
> anything, then they should at least have comments to that effect, and
> ideally be removed.

Setting the environment variable no longer has any effect, but the
presence of the configuration is checked by the code which sets up
zservers:  if set, those servers to not create / write log or PID files.

The environment variable *is* a fossil, whose former effects are now
spelled out via configuration directives for the storage itself.  We
should remove the code which sets the environment variable, and update
any docs which pretend that it is still effective.  Please file a
collector issue for this.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDU5TD+gerLs4ltQ4RAjLCAJwPXEbmEWXBUDJxUsXP7pHVlpoTUQCdEf3c
6WksK6zsqLpeh18+kXUrb/o=
=ZaL2
-----END PGP SIGNATURE-----



More information about the Zope mailing list