[z3-checkins] Re: r10172 - z3/Five/branch/regebro-standard_macros
Philipp von Weitershausen
philipp at weitershausen.de
Thu Mar 31 10:22:56 MEST 2005
regebro at codespeak.net wrote:
> Modified: z3/Five/branch/regebro-standard_macros/CHANGES.txt
> ==============================================================================
> --- z3/Five/branch/regebro-standard_macros/CHANGES.txt (original)
> +++ z3/Five/branch/regebro-standard_macros/CHANGES.txt Wed Mar 30 15:03:22 2005
> @@ -1,5 +1,9 @@
> Five Changes
> ============
> +* We now monkeypatch Zope3! The Five StandardMacros is put into place
> + of the Zope3 standard macros. This is to enable access to
> + context/@@form_macros which are otehrwise unavailable.
> +
[snip]
> Modified: z3/Five/branch/regebro-standard_macros/monkey.py
> ==============================================================================
> --- z3/Five/branch/regebro-standard_macros/monkey.py (original)
> +++ z3/Five/branch/regebro-standard_macros/monkey.py Wed Mar 30 15:03:22 2005
> @@ -28,3 +28,9 @@
>
> HTTPRequest.getPresentationSkin = getPresentationSkin
> HTTPRequest.setPresentationSkin = setPresentationSkin
> +
> + # Yes, we monkeypatch Zope3 as well. Nothing escapes our monkeys!
> + from zope.app.basicskin import standardmacros
> + from browser import StandardMacros
> + standardmacros.StandardMacros = StandardMacros
> +
In your checkin and code comments, you have described what you're doing,
but I still have no clue WHY you're doing this and why you think it's
necessary to use a monkey... Maybe you can enlighten me...
Thanks,
Philipp
More information about the z3-checkins
mailing list