[Zope-dev] multiple monkeypatches

Adrian Hungate adrian@haqa.co.uk
Thu, 6 Jun 2002 00:02:33 +0100


PatchKit allows the replacement of entire methods, with the ability to
backup the original when the first replacement is done - This means that the
patches are (Or at least can be) refreshable.

PatchKit does not allow for small changes to be made within a method (Such
as a DTML/HTML object) but there is a patch that puts the ZMI in the ZODB.

Adrian...

--
Adrian Hungate
EMail: adrian@haqa.co.uk
Web: http://www.haqa.co.uk

Computers are like air conditioners
    -- they stop working properly if you open WINDOWS
----- Original Message -----
From: "Jim Penny" <jpenny@universal-fasteners.com>
To: "Adrian Hungate" <adrian@haqa.co.uk>; <zope-dev@zope.org>
Sent: Wednesday, June 05, 2002 11:37 PM
Subject: Re: [Zope-dev] multiple monkeypatches


> On Wed, Jun 05, 2002 at 10:51:45PM +0100, Adrian Hungate wrote:
> > PatchKit handles this for you (If you ask it to).
> >
> > :)
> >
> > Adrian...
>
> I am not sure that I understand.  I need to be able to do a
> "cumulative monkey patch".  Suppose that there were two independent
> products which both modified manage_main (without loss of generality,
> say ExternalEditor and ZShell).  Most people use neither, some people
> use one, some use the other, and some use both.
>
> It is the case of people using both that I am interested in.  To do
> this appears to me to require that I have access to the DTML form of
> any previous monkey patches to manage_main so that I can decide
> if I can safely patch the running version to meet the needs of both
> products.
>
> Is this possible?
>
> If both products were using PatchKit would it be possible?  How about
> if only one used PatchKit?
>
> Thanks
>
> Jim
> >
> > --
>