----- Original Message -----
From: "Leonardo Rochael Almeida" <[EMAIL PROTECTED]>
To: "Gilles Lenfant" <[EMAIL PROTECTED]>
Cc: "Zope Developers list" <[EMAIL PROTECTED]>
Sent: Tuesday, November 05, 2002 8:34 PM
Subject: Re: [Zope-dev] Using Zope from a console script
> On Tue, 2002-11-05 at 17:27, Gilles Lenfant wrote:
> > I tried (successfully) to play with Zope objects with console scripts
> > the hints in $ZOPEROOT/doc/ZODB.txt
> > Unfortunately, it works only if the Zope server is down.
> > I need to run this script on a running server, and I'd prefer not using
> > xmlrpc stuffs for a better efficiency.
> > Any hint, config, examples ?
> You can use the monitor port, see z2.py help and
Thanks for that fast answer.
But it's buggy for me (Zope 2.5.1/Python 2.1.3/FreeBSD) :
bash-2.05a$ python ZServer/medusa/monitor_client.py localhost 8099
/usr/local/lib/python2.1/regsub.py:15: DeprecationWarning: the regsub module
is deprecated; please use re.sub()
Traceback (most recent call last):
File "ZServer/medusa/monitor_client.py", line 114, in ?
stdin = stdin_channel (0)
File "/usr/src/Zope-2.5.1-src/ZServer/medusa/asyncore.py", line 551, in
flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0)
AttributeError: 'fcntl' module has no attribute 'F_GETFL'
Do you think I should record this in the collector or did I miss something ?
> You can also use ZEO and do your debugging in a separate Zope (ZEO
> Client) instance.
But just want to run a console application, not running it from another Zope
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -