Re: [Zope] [ANN] zshell: The Zope Shell
I forward Jerome reply to the list. At Thu, 3 May 2001 15:16:53 +0200 (MET DST), Jerome Alet wrote:
On Thu, 3 May 2001, Serge Stinckwich wrote:
At Thu, 3 May 2001 14:42:11 +0200 (MET DST), Jerome Alet wrote:
I've desesperatly searched for something like that on zope.org this morning but without luck, so I've written my own :-)
Hiya Jérome,
there is already a Zope shell tool : <http://www.zope.org/Members/sf/zopeshell/>
My fault: I've searched for "zope shell" and not "zopeshell"
However these are different beasts: Stefane's one works in an external editor, mine works from within Zope's management interface.
However the two are complementary, and I'll probably suck some of his code (and he can't even do the same without changing his licence first ;-)
Interestingly its from another french zopista !
bye, and thanks for the info
Jerome Alet
Serge Stinckwich <Serge.Stinckwich@info.unicaen.fr> writes:
However these are different beasts: Stefane's one works in an external editor, mine works from within Zope's management interface.
Ahhhh.. I get it. That's neat! It would be nice to have a unified zope shell with the same commands accessible through the web or from a remote command line. Here's how it looks in a wiki page: http://zwiki.org/TestPage Seems a bit dangerous though. There's probably some way to delete all pages with a single command. -Simon
On Thu, May 03, 2001 at 09:21:57AM -0700, Simon Michael wrote:
Serge Stinckwich <Serge.Stinckwich@info.unicaen.fr> writes:
However these are different beasts: Stefane's one works in an external editor, mine works from within Zope's management interface.
It would be nice to have a unified zope shell with the same commands accessible through the web or from a remote command line.
Here's how it looks in a wiki page: http://zwiki.org/TestPage Seems a bit dangerous though. There's probably some way to delete all pages with a single command.
YES be careful. however it doesn't seem to work with your url. I confirm it works fine at home. Another thing you've missed is that its powerfulness resides in its ability to deal with multiple commands, that's why the original form was a textarea, e.g.: cd myfolder ls Folder Image mv ThisFolder ThisOtherOne .. ls Folder Image cd .. ls cp ThisFolder myfolder Enjoy. Expect a new release very soon, you'll find the 'restart' command helpful ! bye, Jerome Alet
On Thu, May 03, 2001 at 08:21:38PM +0200, Jerome Alet wrote:
On Thu, May 03, 2001 at 09:21:57AM -0700, Simon Michael wrote:
Serge Stinckwich <Serge.Stinckwich@info.unicaen.fr> writes:
However these are different beasts: Stefane's one works in an external editor, mine works from within Zope's management interface.
It would be nice to have a unified zope shell with the same commands accessible through the web or from a remote command line.
Here's how it looks in a wiki page: http://zwiki.org/TestPage Seems a bit dangerous though. There's probably some way to delete all pages with a single command.
YES be careful.
I've just seen the access is now protected, it's a good idea else anyone could just do a: rm bye, Jerome
Jerome Alet <alet@unice.fr> writes:
I've just seen the access is now protected, it's a good idea else anyone could just do a: rm
editing the zshell script is protected, but running it isn't. I couldn't find a way to protect against executing zshell commands, short of disabling all the lower-level permissions (such as object deletion). "rm" & "rm *" don't work but "rm ." does. Zshell allows you to do so much evil (as well as good) with so little effort, that I think it would benefit from an extra permission.
Jerome Alet <alet@unice.fr> writes:
however it doesn't seem to work with your url. I confirm it works fine at home.
What doesn't work ? I was hacking on it..
Another thing you've missed is that its powerfulness resides in its ability to deal with multiple commands, that's why the original form was a textarea, e.g.:
Didn't miss it, just preferred a text input because it reduces my mousing effort in netscape. I tweaked your code to allow multiple commands on a line (at http://zwiki.org/TestPage). What do you think about adding a "Run Zshell Commands" permission as an extra level of configurability for this mode of interaction ? Cheers -Simon
On Thu, May 03, 2001 at 11:48:57AM -0700, Simon Michael wrote:
Jerome Alet <alet@unice.fr> writes:
however it doesn't seem to work with your url. I confirm it works fine at home.
What doesn't work ? I was hacking on it..
It works fine now, sorry.
Another thing you've missed is that its powerfulness resides in its ability to deal with multiple commands, that's why the original form was a textarea, e.g.:
Didn't miss it, just preferred a text input because it reduces my mousing effort in netscape. I tweaked your code to allow multiple commands on a line (at http://zwiki.org/TestPage).
I've seen and I'll probably include it in the main code.
What do you think about adding a "Run Zshell Commands" permission as an extra level of configurability for this mode of interaction ?
No problem, just tell me how to do that, I'm not a Zope permission master at all. FYI I've rewritten the little thing as an external method, here's what works now: cd, pwd ls cp, mv, rm cut, copy, paste import restart pack save, discard (versions, but still untested) chown (even with -R, doesn't work yet but I'm on it just now) I expect to have the man command work tomorrow or later this evening, as well as some more commands, and then I'll upload it somewhere for people to test. Note to DC folks: if only manage_restart didn't redirected to manage_main but to URL0 !!! bye, Jerome Alet
What's also very neat is the modern Python Script - I hadn't seen one in action recently. Easy to install, powerful, trustable. I was able to import re but re.split gave an access violation. What's the latest with respect to using the re module in p.scripts ? With wiki synergies in mind, I exposed the script's body for (manager) editing on http://zwiki.org/TestPage. Question: do we have a general (or not) way to redirect manage edit actions to somewhere other than the ZMI ? Eg back to the wiki page in this case. -Simon
participants (3)
-
Jerome Alet -
Serge Stinckwich -
Simon Michael