[Zope] when can a product be refreshed?

Paul Winkler pw_lists at slinkp.com
Wed Feb 23 12:49:53 EST 2005


On Wed, Feb 23, 2005 at 06:22:30PM +0100, Florent Guillaume wrote:
> There's usually no problem with using refresh and monkey-patching.
> 
> Only badly written products that monkey patch by first unconditonnaly
> saving the old version of a function/method, then replacing it with some
> new one that does stuff and then calls the old one, may fail.

That's probably what I saw.

Aside from refresh, are there other reasons you consider that technique 
bad? I've often used it as a sort of in-place decorator.

The obvious alternative is to copy/paste the code from the
original method. Is that what you prefer?

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list