[Zope3-dev] Re: hook and hookable zcml
R. David Murray
david+dated+1040769833.cf1eb0@bitdance.com
Thu, 19 Dec 2002 17:43:47 -0500 (EST)
Gary Poster wrote:
> hook and hookable are ways of setting up explicit monkey patches: you
> declare that something can be monkey patched with "hookable", and make a
> replacement for it with "hook". You can't hook anything that isn't
> declared as hookable, and you can't hook the same hookable twice. It
> also gives you a registry which could theoretically give information TTW
> (read-only) on what has been monkey-patched via the hookable/hook mechanism.
>
> So, keep and fix, or trash and regroup?
Since it doesn't really solve the problem (multiple safe monkey
patches), and isn't yet really used, I'd vote for ripping it out
for the Alpha and redesigning it after.
Besides, I thought we were trying to avoid the need for
monkey patching <grin>.
--RDM