[ZODB-Dev] Accessing Plone through ZEO back door?

Chris Withers chris at simplistix.co.uk
Mon Aug 23 07:21:55 EDT 2004


Kapil Thangavelu wrote:
> fwiw, the server does need to be aware of the products if your relying 
> on application level conflict resolution, for which the server needs to 
> load the class def to invoke the appropriate methods.

Really? I wonder how come I've never had these errors from ZEO servers 
:-/ Would always having a Zope install as the place the storage server 
is run from make a difference?

> fwiw, on 2.7 i setup env vars before invoking scripts (sometimes a front 
> end script)
> export INSTANCE_HOME=/somewhere/
> export SOFTWARE_HOME=/somewhereelse
> export PYTHONPATH=$SOFTWARE_HOME:$PYTHONPATH
> 
> #script start
> 
> #!/bin/env python2.3
> 
> import Zope, os
> Zope.configure( os.path.join( os.environ['INSTANCE_HOME'], 'etc', 
> 'zope.conf') )
> app = Zope.app()

Sadly, this is the best way to go about it...

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the ZODB-Dev mailing list