Hello I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it. Would somebody be so kind to give me some pointers? Thanks and regards Stefano Vedovelli
Hi Stefano, cd to the "lib/python" directory of your Zope. then invoke python. At the python prompt:
import Zope app = Zope.app() app.Control_Panel <ApplicationManager instance at 7128372>
----- Original Message ----- From: <spinwing@inwind.it> To: <zope@zope.org> Sent: Thursday, March 15, 2001 1:15 PM Subject: [Zope] Python console Hello I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it. Would somebody be so kind to give me some pointers? Thanks and regards Stefano Vedovelli _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
What's the magic for getting this to work with a ZEO client? I saw Jim demonstrate it last week, but didn't realize the need for a ZEO bit to note it down until later. By the way, I'm still waiting for Jim's slides... Dan Pierson --On Thursday, March 15, 2001 03:06:39 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
Hi Stefano,
cd to the "lib/python" directory of your Zope.
then invoke python.
At the python prompt:
import Zope app = Zope.app() app.Control_Panel <ApplicationManager instance at 7128372>
----- Original Message ----- From: <spinwing@inwind.it> To: <zope@zope.org> Sent: Thursday, March 15, 2001 1:15 PM Subject: [Zope] Python console
Hello
I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it.
Would somebody be so kind to give me some pointers?
Thanks and regards Stefano Vedovelli
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
No magic. Same thing. ----- Original Message ----- From: "Dan L. Pierson" <dan@control.com> To: <zope@zope.org> Sent: Thursday, March 15, 2001 3:00 PM Subject: Re: [Zope] Python console
What's the magic for getting this to work with a ZEO client? I saw Jim demonstrate it last week, but didn't realize the need for a ZEO bit to note it down until later.
By the way, I'm still waiting for Jim's slides...
Dan Pierson
--On Thursday, March 15, 2001 03:06:39 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
Hi Stefano,
cd to the "lib/python" directory of your Zope.
then invoke python.
At the python prompt:
import Zope app = Zope.app() app.Control_Panel <ApplicationManager instance at 7128372>
----- Original Message ----- From: <spinwing@inwind.it> To: <zope@zope.org> Sent: Thursday, March 15, 2001 1:15 PM Subject: [Zope] Python console
Hello
I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it.
Would somebody be so kind to give me some pointers?
Thanks and regards Stefano Vedovelli
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hmm, what am I doing wrong? [dan@daystar python]$ pwd /home/dan/site/zope/lib/python [dan@daystar python]$ python Python 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import Zope Traceback (innermost last): File "<stdin>", line 1, in ? File "/home/dan/site/zope/lib/python/Zope/__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "/home/dan/site/zope/lib/python/ZODB/FileStorage.py", line 262, in __init__ lock_file(f) File "/home/dan/site/zope/lib/python/ZODB/lock_file.py", line 101, in lock_file raise error, ( ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p>
--On Thursday, March 15, 2001 03:34:13 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
No magic. Same thing.
----- Original Message ----- From: "Dan L. Pierson" <dan@control.com> To: <zope@zope.org> Sent: Thursday, March 15, 2001 3:00 PM Subject: Re: [Zope] Python console
What's the magic for getting this to work with a ZEO client? I saw Jim demonstrate it last week, but didn't realize the need for a ZEO bit to note it down until later.
By the way, I'm still waiting for Jim's slides...
Dan Pierson
--On Thursday, March 15, 2001 03:06:39 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
Hi Stefano,
cd to the "lib/python" directory of your Zope.
then invoke python.
At the python prompt:
import Zope app = Zope.app() app.Control_Panel <ApplicationManager instance at 7128372>
----- Original Message ----- From: <spinwing@inwind.it> To: <zope@zope.org> Sent: Thursday, March 15, 2001 1:15 PM Subject: [Zope] Python console
Hello
I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it.
Would somebody be so kind to give me some pointers?
Thanks and regards Stefano Vedovelli
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Thu, 15 Mar 2001, Dan L. Pierson wrote:
Hmm, what am I doing wrong?
ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file.
Can only do it this way if you're not using Zope right now. Check out doc/DEBUGGING.txt in your installation for info on using medua monitor to do it while Zope is running. -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
That's exactly why I asked about the ZEO "magic". What Jim did and what I'm trying to do is run a ZEO storage server, then run python as a ZEO client for debugging while running another ZEO client with a browser working on the site. All off of a single laptop at the conference. --On Thursday, March 15, 2001 03:51:15 PM -0500 Joel Burton <jburton@scw.org> wrote:
On Thu, 15 Mar 2001, Dan L. Pierson wrote:
Hmm, what am I doing wrong?
ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file.
Can only do it this way if you're not using Zope right now.
Check out doc/DEBUGGING.txt in your installation for info on using medua monitor to do it while Zope is running.
-- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
On Thu, 15 Mar 2001, Dan L. Pierson wrote:
That's exactly why I asked about the ZEO "magic". What Jim did and what I'm trying to do is run a ZEO storage server, then run python as a ZEO client for debugging while running another ZEO client with a browser working on the site. All off of a single laptop at the conference.
The difference being that w/one zope server and medusa debugging, I could freeze zope by setting breakpoints, but by ZEO debugging, my python ZEO client (its own Zope server) could do that and keep this site? (Or, if I'm misunderstanding, then what is the advantage of this?) Thanks, -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
--On Thursday, March 15, 2001 04:22:32 PM -0500 Joel Burton <jburton@scw.org> wrote:
On Thu, 15 Mar 2001, Dan L. Pierson wrote:
That's exactly why I asked about the ZEO "magic". What Jim did and what I'm trying to do is run a ZEO storage server, then run python as a ZEO client for debugging while running another ZEO client with a browser working on the site. All off of a single laptop at the conference.
The difference being that w/one zope server and medusa debugging, I could freeze zope by setting breakpoints, but by ZEO debugging, my python ZEO client (its own Zope server) could do that and keep this site? (Or, if I'm misunderstanding, then what is the advantage of this?)
Exactly!
It appears you're not actually using ZEO... make sure your custom_zodb.py file is set up right in that instance. ----- Original Message ----- From: "Dan L. Pierson" <dan@control.com> To: <zope@zope.org> Sent: Thursday, March 15, 2001 3:39 PM Subject: Re: [Zope] Python console
Hmm, what am I doing wrong?
[dan@daystar python]$ pwd /home/dan/site/zope/lib/python [dan@daystar python]$ python Python 1.5.2 (#1, Feb 1 2000, 16:32:16) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import Zope Traceback (innermost last): File "<stdin>", line 1, in ? File "/home/dan/site/zope/lib/python/Zope/__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "/home/dan/site/zope/lib/python/ZODB/FileStorage.py", line 262, in __init__ lock_file(f) File "/home/dan/site/zope/lib/python/ZODB/lock_file.py", line 101, in lock_file raise error, ( ZODB.POSException.StorageSystemError: Could not lock the database file. There must be another process that has opened the file. <p>
--On Thursday, March 15, 2001 03:34:13 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
No magic. Same thing.
----- Original Message ----- From: "Dan L. Pierson" <dan@control.com> To: <zope@zope.org> Sent: Thursday, March 15, 2001 3:00 PM Subject: Re: [Zope] Python console
What's the magic for getting this to work with a ZEO client? I saw Jim demonstrate it last week, but didn't realize the need for a ZEO bit to note it down until later.
By the way, I'm still waiting for Jim's slides...
Dan Pierson
--On Thursday, March 15, 2001 03:06:39 PM -0500 Chris McDonough <chrism@digicool.com> wrote:
Hi Stefano,
cd to the "lib/python" directory of your Zope.
then invoke python.
At the python prompt:
> import Zope > app = Zope.app() > app.Control_Panel <ApplicationManager instance at 7128372>
----- Original Message ----- From: <spinwing@inwind.it> To: <zope@zope.org> Sent: Thursday, March 15, 2001 1:15 PM Subject: [Zope] Python console
Hello
I have been reading some times that it is possible to start up the Pyhton interpreter and dialog with Zope while it is running. However, I have no clue how to do it, nor I found anything around, nor I do not know what I can ask it.
Would somebody be so kind to give me some pointers?
Thanks and regards Stefano Vedovelli
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chris McDonough -
Dan L. Pierson -
Joel Burton -
spinwing@inwind.it