[PATCH] to Zope's Management Interface
Hi 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 : http://www.librelogiciel.com/software/ 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 package. 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 @@ </table> </dtml-if> +<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;" /> + + <input type="submit" name="zshellbutton" value="ZShell!" /> + </form> +</dtml-if> + <form action="&dtml-URL1;/" name="objectItems" method="post"> <dtml-if objectItems> <table width="100%" cellspacing="0" cellpadding="2" border="0">
The download file at http://www.librelogiciel.com/software/ZShell/tarballs/zshell-1.42.tar.gz cannot be opened on W2K with Winzip 8.0 (tested on several different machines) Roel
-----Oorspronkelijk bericht----- Van: zope-admin@zope.org [mailto:zope-admin@zope.org]Namens Jerome Alet Verzonden: maandag 29 april 2002 13:21 Aan: zope@zope.org CC: zope-dev@zope.org Onderwerp: [Zope] [PATCH] to Zope's Management Interface
Hi
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 :
http://www.librelogiciel.com/software/
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 package.
Jerome Alet
On Mon, 29 Apr 2002, Roel Van den Bergh wrote:
The download file at http://www.librelogiciel.com/software/ZShell/tarballs/zshell-1.42.tar.gz cannot be opened on W2K with Winzip 8.0 (tested on several different machines)
could you download it again ? I've tested here (no windows, sorry) and it's ok, file size is 46686 bytes and md5sum is : 6efb9c10e532d534fb843354ac28c5bb maybe it was corrupted during the download phase. hth. Jerome Alet
downloaded it several times with the same result every time I try to open it ads itself to a new archive Opening Winzip first and then opening archive results in 'no valide archive file'
-----Oorspronkelijk bericht----- Van: Jerome Alet [mailto:alet@unice.fr] Verzonden: maandag 29 april 2002 15:18 Aan: Roel Van den Bergh CC: zope@zope.org; zope-dev@zope.org Onderwerp: RE: [Zope] [PATCH] to Zope's Management Interface
On Mon, 29 Apr 2002, Roel Van den Bergh wrote:
The download file at http://www.librelogiciel.com/software/ZShell/tarballs/zshell-1.42.tar.gz cannot be opened on W2K with Winzip 8.0 (tested on several different machines)
could you download it again ?
I've tested here (no windows, sorry) and it's ok, file size is 46686 bytes and md5sum is :
6efb9c10e532d534fb843354ac28c5bb
maybe it was corrupted during the download phase.
hth.
Jerome Alet
I get a file size of 174.080 bytes ?
Roel Van den Bergh wrote:
downloaded it several times with the same result every time I try to open it ads itself to a new archive
Opening Winzip first and then opening archive results in 'no valide archive file'
Let's stop cross-posting to both zope@zope.org and zope-dev@zope.org. What browser did you use to download the archive? Some older browsers do bad things, like chop off the .gz at the end of the filename, which confuses unarchiving programs. -- Steve Alexander
On Mon, 29 Apr 2002, Steve Alexander wrote:
Some older browsers do bad things, like chop off the .gz at the end of the filename, which confuses unarchiving programs.
It seems that the file you've downloaded was automatically gunzipped by your browser. the size of the gunzipped archive is exactly the size your report : 174080 bytes. bye, Jerome Alet
Hi, don't know why, but I renamed it to zshell-1.42.tar This opens correctly with winzip ;-) Good luck, Antwan. At 15:26 29-4-02 +0200, you wrote:
downloaded it several times with the same result every time I try to open it ads itself to a new archive
Opening Winzip first and then opening archive results in 'no valide archive file'
-----Oorspronkelijk bericht----- Van: Jerome Alet [mailto:alet@unice.fr] Verzonden: maandag 29 april 2002 15:18 Aan: Roel Van den Bergh CC: zope@zope.org; zope-dev@zope.org Onderwerp: RE: [Zope] [PATCH] to Zope's Management Interface
On Mon, 29 Apr 2002, Roel Van den Bergh wrote:
The download file at http://www.librelogiciel.com/software/ZShell/tarballs/zshell-1.42.tar.gz cannot be opened on W2K with Winzip 8.0 (tested on several different machines)
could you download it again ?
I've tested here (no windows, sorry) and it's ok, file size is 46686 bytes and md5sum is :
6efb9c10e532d534fb843354ac28c5bb
maybe it was corrupted during the download phase.
hth.
Jerome Alet
I get a file size of 174.080 bytes ?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
It's most likely IE 'helping' out and ungzipping on the fly.
-----Original Message----- From: zope-dev-admin@zope.org [mailto:zope-dev-admin@zope.org]On Behalf Of Jerome Alet Sent: Monday, April 29, 2002 8:18 AM To: Roel Van den Bergh Cc: zope@zope.org; zope-dev@zope.org Subject: [Zope-dev] RE: [Zope] [PATCH] to Zope's Management Interface
On Mon, 29 Apr 2002, Roel Van den Bergh wrote:
The download file at http://www.librelogiciel.com/software/ZShell/tarballs/zshell-1.42.tar.gz cannot be opened on W2K with Winzip 8.0 (tested on several different machines)
could you download it again ?
I've tested here (no windows, sorry) and it's ok, file size is 46686 bytes and md5sum is :
6efb9c10e532d534fb843354ac28c5bb
maybe it was corrupted during the download phase.
hth.
Jerome Alet
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Mon, Apr 29, 2002 at 12:56:56PM -0500, Steve Drees wrote: | It's most likely IE 'helping' out and ungzipping on the fly. Netscape (4.x at least) does this. It really helps, too, that it leaves the .gz on the file, and then WinZip (most windows junk too) assumes that the extension doesn't lie about the contents. Use wget to download stuff reliably, and use 'file' to identify what type of file a file is. -D -- The wise in heart are called discerning, and pleasant words promote instruction. Proverbs 16:21 GnuPG key : http://dman.ddts.net/~dman/public_key.gpg
On Mon, 2002-04-29 at 13:21, Jerome Alet wrote:
Hi
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.
...
As always any comment is very welcome.
Have you thougth of making this a Hotfix instead of patch ? ----------- Hannu
participants (7)
-
Antwan Reijnen -
dman -
Hannu Krosing -
Jerome Alet -
Roel Van den Bergh -
Steve Alexander -
Steve Drees