Paul, I'm cc:ing the zope-dev list on this message:
-----Original Message----- From: Paul Sheer [mailto:psheer@obsidian.co.za] Sent: Thursday, December 02, 1999 10:16 AM To: michel@digicool.com Cc: cooledit@lava.obsidian.co.za Subject: Re: COOLEDIT: changing type
On 1 Dec, Michel Pelletier did thusly spake:
Hi,
Just dicovered cooledit, and I allready have a sketchy interface for opening, creating, and saving documents in Zope (http://www.zope.org/) via python's xmlrpclib.
The one thing I haven't figured out how to do is to programatically change the type of the document in python, I have a need to
force the
editor into my own document type so that I can change the menus, like 'File' so that open and save and whatnot do not work from the filesystem, but rather via xml-rpc. Right now I am overriding the 'Util' menu and it's kinda klunky, as the editor has no idea that it is editing an external resource.
I have a few new python functions you might be interested in
Cool, for the benefit of the zope-dev list, cooledit is an X based text editor that is scripted with python. I have put together a simple set of methods that allow cooledit to open, create, and save DTML Methods and Documents in Zope using Fredrik Lundh's xmlrpclib module (I had to patch the module to support HTTP Basic auth, the patched version is included). The global.py module that defines the zope methods is attached also. I'm getting the impression, from reading through the coolpython.c file, that much of cooledit's methods can be wrapped, possibly allowing more high level control to python methods. One example where this would help with my little project, for example, is saving and opening remote documents. Currently, I can't 'name' the editor window because it expects the name to be a file path. If I can rewire some of the core, then I might be able to do this.
check the changelog file and man page.
distribution being released in a couple of hours
send me your zope stuff soon
Thanks, -Michel