[Zope] Re: Accessing zope through command-line python

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 24 Feb 2003 18:14:27 +0100


Mark Gibson wrote:
> I understand this:
> 
> ----
> import Zope
> root=Zope.app()
> #do stuff now.
> 
> ----
> 
> However, if zope is running I receive an error:
> 
> 
>   File "/home/local/zope_2_6/lib/python/ZODB/lock_file.py", line 33, in 
> lock_file
>     raise error, (
> ZODB.POSException.StorageSystemError: Could not lock the database file.  
> There must be
> another process that has opened the file.
> 
> Is there a way to access a running zope instance in this way?

Hi,

you must ZEO for this tasks. Please read the Zope-Book => ZEO-Chapter.

A nice Howto is:

http://www.zope.org/Members/michel/HowTos/ZODB-How-To

-mj

-- 
German Zope User Group (DZUG) - http://www.dzug.org/