Accessing zope through command-line python
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? Thanks, Mark
Using ZEO is the best way. On Mon, 2003-02-24 at 12:09, 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?
Thanks, Mark
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Monday 24 February 2003 5:09 pm, Mark Gibson wrote:
Is there a way to access a running zope instance in this way?
You need ZEO -- Toby Dickenson http://www.geminidataloggers.com/people/tdickenson
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/
Mark Gibson wrote at 2003-2-24 10:09 -0700:
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.
Have a look at ZEO. There are fine HowTos, too.... Dieter
participants (5)
-
Chris McDonough -
Dieter Maurer -
Maik Jablonski -
Mark Gibson -
Toby Dickenson