Comment 5 for bug 257276

Revision history for this message
Gael Le Mignot (gael-pilotsystems) wrote :

The Hotfix breaks our Zope 2.7 (running with Python 2.3). This is because _aliases don't exist on Python 2.3.

In general, it's a very bad idea to copy/paste the code when doing a monkey-patch, calling the old function back after doing your checks (or after mangling the input, or before mangling the output, depending of your needs) is much less prone to break with different versions.

Here is the modified __init__.py we use on our Zope 2.7. It may not be as complete as the original one, but at least it works.