[Zope] How to know if a Zeo connection is read-only ?

Jens Vagelpohl jens at dataflake.org
Tue Mar 8 14:29:47 EST 2005


On Mar 8, 2005, at 17:30, Pascal Peregrina wrote:

> Hi,
>
> Another product developpment problem ;)
>
> I've got 2 kind of Zope instances :
> 1/ "RO Zopes":
> - / is a local FileStorage
> - /somefolder is a ZeoStorage mounted read-only
> 2/ "RW Zopes":
> - / is a local FileStorage
> - /somefolder is a ZeoStorage mounted read-write
>
> I would like to know, inside a Zope product, how I can know if I am in 
> a RO
> or RW Zope instance.

Grab an object and do...

my_object._p_jar.isReadOnly()

jens



More information about the Zope mailing list