From 8a700d38f1a253d08475364659c43d49c02d628a Mon Sep 17 00:00:00 2001 From: tschorr Date: Thu, 4 Oct 2018 14:17:54 +0200 Subject: [PATCH] updating docs --- docs/operation.rst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/operation.rst b/docs/operation.rst index b2dc2d2a4f..7a67466cf4 100644 --- a/docs/operation.rst +++ b/docs/operation.rst @@ -79,14 +79,10 @@ Debugging Zope In order to debug the Zope application, it can be helpful to connect to its database and inspect or change it on the command line. This feature was previously available via the dedicated `zopectl debug` -command and the same can be achieved in the new WSGI setup. +command - in the new WSGI setup this is available via the `zconsole` +module and console script:: -Assuming you have a Python interpreter with the correct sys.path -available, for example as ``bin/zopepy``, you can run:: - - $ ZOPE_CONFIG=etc/wsgi.conf bin/zopepy - >>> import Zope2 - >>> app = Zope2.app() + $ bin/zconsole debug etc/wsgi.conf >>> app @@ -99,6 +95,13 @@ available, for example as ``bin/zopepy``, you can run:: >>> transaction.commit() +Running scripts +--------------- + +This was previously availabe using `zopectl run ...`. +Again in the WSGI setup the `zconsole` module and console script can be used:: + + $ bin/zconsole run etc/wsgi.conf ... Logging In To Zope ------------------