[Zope-Checkins] SVN: Zope/hotfixes/Products.Zope_Hotfix_CVE_2011_3587/trunk/Products/Zope_Hotfix_CVE_2011_3587/patch.py Add patch
Hanno Schlichting
hannosch at hannosch.eu
Tue Oct 4 10:00:59 EST 2011
Log message for revision 123014:
Add patch
Changed:
U Zope/hotfixes/Products.Zope_Hotfix_CVE_2011_3587/trunk/Products/Zope_Hotfix_CVE_2011_3587/patch.py
-=-
Modified: Zope/hotfixes/Products.Zope_Hotfix_CVE_2011_3587/trunk/Products/Zope_Hotfix_CVE_2011_3587/patch.py
===================================================================
--- Zope/hotfixes/Products.Zope_Hotfix_CVE_2011_3587/trunk/Products/Zope_Hotfix_CVE_2011_3587/patch.py 2011-10-04 14:20:16 UTC (rev 123013)
+++ Zope/hotfixes/Products.Zope_Hotfix_CVE_2011_3587/trunk/Products/Zope_Hotfix_CVE_2011_3587/patch.py 2011-10-04 15:00:59 UTC (rev 123014)
@@ -1,4 +1,9 @@
+from types import ModuleType
def install_patch():
- pass
+ from OFS.misc_ import p_
+
+ for k, v in list(p_.__dict__.items()):
+ if isinstance(v, ModuleType):
+ del p_.__dict__[k]
More information about the Zope-Checkins
mailing list