the attached patch to apply to zope/lib/python/OFS/dtml/main.dtml allows
people who want to use ZShell to type ZShell commands directly from the
Zope's Management Interface. It should be transparent for people who don't
want to use ZShell at all.

to use this patch, you have to : 

  - download ZShell v1.42 from : 


    This is mandatory to stay in the ZMI when running commands, otherwise,
    with older ZShell versions you'll enter ZShell user interface after
    entering a command.

  - extract it in your home directory

  - cd to the Zope's home, e.g. /usr/lib/zope

  - type the following command (as root) :

        patch -p0 <~myusername/zshell-1.42/main.dtml.patch

  - restart Zope

  Enjoy !!! (At least you should)

This was tested against Zope 2.5.0-4 (Debian package) but applying the
patch manually to other versions if needed is very easy.

As always any comment is very welcome.

PS : This procedure and the patch are now included in the ZShell 1.42

Jerome Alet
--- lib/python/OFS/dtml/main.dtml.orig  Mon Apr 29 12:18:12 2002
+++ lib/python/OFS/dtml/main.dtml       Mon Apr 29 12:38:34 2002
@@ -60,6 +60,15 @@
+<dtml-if "_.hasattr(this(), 'zshell')">
+  <form action="zshell" method="GET">
+    <input type="text" name="zshellscript:string" width="60" />
+    <input type="hidden" name="zshellredirect:string" value="&dtml-URL0;" />
+    &nbsp;
+    <input type="submit" name="zshellbutton" value="ZShell!" />
+  </form>
 <form action="&dtml-URL1;/" name="objectItems" method="post">
 <dtml-if objectItems>
 <table width="100%" cellspacing="0" cellpadding="2" border="0">

Reply via email to