RE: [Zope-dev] RE: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Steve Drees

It's most likely IE 'helping' out and ungzipping on the fly.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Jerome Alet
> Sent: Monday, April 29, 2002 8:18 AM
> To: Roel Van den Bergh
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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  -  [EMAIL PROTECTED]
> 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 )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Jerome Alet

On Mon, 29 Apr 2002, Steve Alexander wrote:

> Jerome Alet wrote:
> > 
> > ok, so if I understand correctly all I have to do to make a not-hotfix
> > product is just do an unconditionnal assignment of my new complete
> > main.dtml file to ObjectManager.ObjectManager.manage_main in my product's
> > __init__.py file ?
> 
> If the ObjectManager class has already been initialized, then its 
> security declarations will have been applied to the preexisting main 
> DTMLFile object.
> 
> In which case, you'll have to re-initialise the class, or process your 
> own security declarations, or something like that.

Ok, for now I will go with the patch, and I'll think more about this for
the next version.

thanks for the help.

Jerome Alet



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Steve Alexander

Jerome Alet wrote:
> On Mon, 29 Apr 2002, Steve Alexander wrote:
> 
> 
>>You should certainly not use the App.Hotfixes interface for this.
>>
>>The App.Hotfixes interface is for registering dynamic patches that will 
>>become part of Zope in a future release, at which point the dynamic 
>>patch can be removed.
> 
> 
> ok, so if I understand correctly all I have to do to make a not-hotfix
> product is just do an unconditionnal assignment of my new complete
> main.dtml file to ObjectManager.ObjectManager.manage_main in my product's
> __init__.py file ?
> 
> am I right ?


I'm not sure whether that will be sufficient.

If the ObjectManager class has already been initialized, then its 
security declarations will have been applied to the preexisting main 
DTMLFile object.

In which case, you'll have to re-initialise the class, or process your 
own security declarations, or something like that.

Then again, it might just work.

Try it and see.

--
Steve Alexander






___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Jerome Alet

On Mon, 29 Apr 2002, Steve Alexander wrote:

> You should certainly not use the App.Hotfixes interface for this.
> 
> The App.Hotfixes interface is for registering dynamic patches that will 
> become part of Zope in a future release, at which point the dynamic 
> patch can be removed.

ok, so if I understand correctly all I have to do to make a not-hotfix
product is just do an unconditionnal assignment of my new complete
main.dtml file to ObjectManager.ObjectManager.manage_main in my product's
__init__.py file ?

am I right ?

> While you are dynamically extending Zope, I don't think there are any 
> plans to incorporate this into the core Zope distribution.

:-)

bye,

Jerome Alet





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Steve Alexander

Jerome Alet wrote:
> 
> Perhaps you could tell me if I have to use the App.Hotfixes interface or
> not when doing such a not-Hotfix thing.


You should certainly not use the App.Hotfixes interface for this.

The App.Hotfixes interface is for registering dynamic patches that will 
become part of Zope in a future release, at which point the dynamic 
patch can be removed.

While you are dynamically extending Zope, I don't think there are any 
plans to incorporate this into the core Zope distribution.

--
Steve Alexander



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Jerome Alet

On Mon, 29 Apr 2002, Steve Alexander wrote:

> Hannu Krosing wrote:
> >
> >>As always any comment is very welcome.
> > 
> > Have you thougth of making this a Hotfix instead of patch ?
> 
> Please don't call this a "hotfix". That term is reserved for products 
> that fix important bugs (especially security bugs) in Zope.
> 
> A product can dynamically patch things, using the same mechanism as a 
> Hotfix. However, use of this mechanism does not qualify a product as a 
> Hotfix.
> 
> The terms "monkeypatch" and "dynamic patch" have been used to describe 
> this mechanism. Please use one of these in preference to "Hotfix".

Perhaps you could tell me if I have to use the App.Hotfixes interface or
not when doing such a not-Hotfix thing.

Thanks in advance.

Jerome Alet



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] RE: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Roel Van den Bergh

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:[EMAIL PROTECTED]]
> Verzonden: maandag 29 april 2002 15:18
> Aan: Roel Van den Bergh
> CC: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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-Dev maillist  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Steve Alexander

Hannu Krosing wrote:
>
>>As always any comment is very welcome.
> 
> Have you thougth of making this a Hotfix instead of patch ?

Please don't call this a "hotfix". That term is reserved for products 
that fix important bugs (especially security bugs) in Zope.

A product can dynamically patch things, using the same mechanism as a 
Hotfix. However, use of this mechanism does not qualify a product as a 
Hotfix.

The terms "monkeypatch" and "dynamic patch" have been used to describe 
this mechanism. Please use one of these in preference to "Hotfix".

--
Steve Alexander



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] RE: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread 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



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] RE: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Roel Van den Bergh

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Jerome Alet
> Verzonden: maandag 29 april 2002 13:21
> Aan: [EMAIL PROTECTED]
> CC: [EMAIL PROTECTED]
> 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
>




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Jerome Alet

NB : not CCed to [EMAIL PROTECTED]

On 29 Apr 2002, Hannu Krosing wrote:

> On Mon, 2002-04-29 at 13:21, Jerome Alet wrote:
> > 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.
> > 
> Have you thougth of making this a Hotfix instead of patch ?

No. I often don't think a lot, especially considering that the idea to do
this 4 lines patch only came to my mind this morning...

Is there a howto somewhere ?

thanks in advance.

Jerome Alet



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )



[Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

2002-04-29 Thread Hannu Krosing

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




___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )