Re: [Zope-dev] multiple monkeypatches

2002-06-06 Thread Casey Duncan
I really think the only way to make this work is to design the products with this in mind. Perhaps by developing a defacto standard for doing monkey patches nicely. I am going to experiment with ExternalEditor to see if I can dynamically patch manage_main reliably rather than replacing it

Re: [Zope-dev] multiple monkeypatches

2002-06-06 Thread Jerome Alet
On Thu, Jun 06, 2002 at 09:24:58AM -0400, Casey Duncan wrote: I am going to experiment with ExternalEditor to see if I can dynamically patch manage_main reliably rather than replacing it outright. If I work out a reliable scheme, I'll write a how-to on it. Then maybe other products can then

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Florent Guillaume
Jim Penny [EMAIL PROTECTED] wrote: Is there a safe way to handle multiple monkeypatches? Without an existing framework (I haven't looked at Adrian's PatchKit), it's the same old problem as intercepting interrupts on good old 8-bit computers. You just have to save and call the previous one.

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Jerome Alet
On Wed, Jun 05, 2002 at 05:15:10PM +, Florent Guillaume wrote: Jim Penny [EMAIL PROTECTED] wrote: Is there a safe way to handle multiple monkeypatches? Without an existing framework (I haven't looked at Adrian's PatchKit), it's the same old problem as intercepting interrupts on good

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Adrian Hungate
-- they stop working properly if you open WINDOWS - Original Message - From: Jerome Alet [EMAIL PROTECTED] To: Florent Guillaume [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 8:02 PM Subject: Re: [Zope-dev] multiple monkeypatches On Wed, Jun 05, 2002 at 05:15

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Adrian Hungate
] Newsgroups: local.lists.zope.zope-dev To: [EMAIL PROTECTED] Sent: Wednesday, June 05, 2002 6:15 PM Subject: Re: [Zope-dev] multiple monkeypatches Jim Penny [EMAIL PROTECTED] wrote: Is there a safe way to handle multiple monkeypatches? Without an existing framework (I haven't looked

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Jim Penny
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

Re: [Zope-dev] multiple monkeypatches

2002-06-05 Thread Adrian Hungate
Hungate [EMAIL PROTECTED]; [EMAIL PROTECTED] 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

[Zope-dev] multiple monkeypatches

2002-06-04 Thread Jim Penny
Is there a safe way to handle multiple monkeypatches? Here is the problem. External editor monkeypatches ObjectManager.manage_main. There are some other products that also need to monkeypatch this object. For example, if Jerome Alet's Zshell were turned into a python product, it would be

Re: [Zope-dev] multiple monkeypatches

2002-06-04 Thread Adrian Hungate
-- they stop working properly if you open WINDOWS - Original Message - From: Jim Penny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 10:09 PM Subject: [Zope-dev] multiple monkeypatches Is there a safe way to handle multiple monkeypatches? Here is the problem