[ZODB-Dev] Zeo: connection problem

Jens Vagelpohl jens at dataflake.org
Wed Jun 7 06:32:44 EDT 2006


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


On 7 Jun 2006, at 11:53, Richard Jennings wrote:

> Hi,
> I have a Zope2.7.2/Zeo2.2.2 instance running, using the standard  
> zope.conf &
> zeo.conf settings (exception: port=8081) and it works fine.  I want  
> read-only
> access to the instance zodb to read site object properties.  In a test
> script, I have used the apparently classic pattern, shown below:
>
> 	addr = ('localhost', 8081)
>         storage = ClientStorage.ClientStorage(addr)
>         db = DB(storage)
>         conn = db.open()
>         root = conn.root()
>         app = root['Application']
>
> This results in the exception shown below.

You are reinventing the wheel. You should investigate if you could  
run your script using the ZEO client's "zopectl" script with "zopectl  
run XXXX". There's also Chris Withers' Stepper product, but I don't  
know if it is compatible with Zope versions earlier than 2.8:

http://www.simplistix.co.uk/software/zope/stepper

jens

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEhqtMRAx5nvEhZLIRAsuxAJ90Vt7pJ6xEGJsfBETC1EpwBJX3ZACfd2yY
oQmaTobKq9L0TsSC2+knIfE=
=6WRO
-----END PGP SIGNATURE-----


More information about the ZODB-Dev mailing list