[Zope] ZShell
Andy McKay
andym@ActiveState.com
Mon, 11 Jun 2001 22:17:32 -0700
Hi,
I finally got around to playing with ZShell (after all those emails
announcing it on the list) and its cool, thanks Jerome.
But I have to admit type command lines into a browser window doesn't thrill
me. Typing command lines into standard cli however, does. So I started
thinking that I could use the simple Cmd module in python, make calls using
xmlrpc and... ZShellCLI, a command line interface was born... my quick proof
of concept works like this:
E:\Zope23>bin\python ZShellCLI.py
ZShellCLI: A CLI to ZShell
> open
Connected to http://127.0.0.1
127.0.0.1> pack 7
Done "pack 7"
Open a server, type your command, its executed through ZShell by xml-rpc and
so on. The coolest part about this could be access to local tools "vim
standard_html_header" (one day) for example...
Anyway questions (mostly to Jerome):
- Is this useful to anyone else?
- Any plans to make it a product, then I could call the methods directly?
Plus more support like changing directories..
- I cheated, I cant show return results, because everything comes back in
html. (As a proof it works I open the results in a browser :) If it was a
product, or there was a html / text option that would be great. I could
parse everything through a html stripper, but that seems rather daft. Any
chance we could get around this...?
Thanks Jerome, good product and thanks for helping out the community.
Cheers
--
Andy McKay