RE: [Zope-dev] RE: COOLEDIT: changing type
-----Original Message----- From: Jim Penny [mailto:jpenny@universal-fasteners.com] Sent: Thursday, December 02, 1999 1:27 PM To: Michel Pelletier Subject: Re: [Zope-dev] RE: COOLEDIT: changing type
Looks very interesting indeed. A couple of quibbles...
I can't get it to run! More in a minute.
First, in global.py it might be a good idea before the sys.path.insert(...) to put a comment like
# YOU MUST CHANGE THE FOLLOWING LINE TO POINT TO THE /lib/python OF YOUR # DISTRIBUTION. sys.path.insert(0, "/home/jpenny/zope/Zope-2.1b2-src/lib/python")
This was needed to find xmlrpclib, since I then had to patch and include xmlrpclib with global.py, it is no longer needed, you can just whack it and put the included (patched) xmlrpclib in the same dir as global.py (usual ~/.cedit/)
There is an obvious spelling mistake in line 84 it says: key("x", ControlMask, "open_zope__resource()") but line 42 defines def zope_open_resource()
oops. but ... uhm... it's not in my file. wierd. Jus take out the extra underscore.
Now, after putting xmlrpc.py in the appropriate spot I get a message on opening cooledit that says File "/home/jpenny/.cedit/global.py", line 8, in ? import xmlprclib File "/home/jpenny/.cedit/xmlrpclib.py", line 54, in ? import operator, string, time ImportError: /usr/lib/python1.5/lib-dynload/operato.so: undefined symbol: _Py_NoneStruct
Uhh... are you using Python 1.5.2? It's a mystery to me otherwise....
If I strike ctrl-x in the window nothing happens.
Before any of this stuff work, you have to run 'Comand' 'Reload Python Scripts'. I don't know why, I assume it's a bug. Note that all the key binding and menus are completely arbirary, I hope to colaborate a bit with the author of cooledit to make things more zopeishly cool.
But, if I got to Command/Reload Python Scripts, control-x gives the expected dialog box. File "<string>", line 1 in ? None File "/home/jpenny/.cedit/global.py", line 51, in zope_open_resource conn = xmlrpclib.Server(url, user, passw) AttributeError: Server
This is probably because your xmlrpclib is acting strangely. -Michel
I came across this by accident.... but I found a sure-fire way to get Zope (2.0.1) on Linux (RH 6.1) to consume all of the CPU resources for several minutes rendering the box useless at that time. Create a frameset document (mine had 5 frames in it) For the source of one of the frames give it a DTML Method with NOTHING in it. Try to view the document (at a time when you don't mind your server hanging up for several minutes. The first time it happened to me I hard booted the box before it came back to life, but for kicks start top on the box and monitor the CPU usage while this is going on). # # # _____________________________________________ Joshua Brauer Box 915 http://www.brauer.org Fort Collins, CO 80522 Fax: (419) 793-4120 _____________________________________________ In flying I have learned that carelessness and overconfidence are usually far more dangerous than deliberately accepted risks. -- Wilbur Wright in a letter to his father, September 1900 ____________________________________________________
participants (2)
-
Joshua Brauer -
Michel Pelletier