[z3-checkins] r20590 - z3/Five/branch/Five-1.2

efge at codespeak.net efge at codespeak.net
Fri Dec 2 21:23:18 CET 2005


Author: efge
Date: Fri Dec  2 21:23:17 2005
New Revision: 20590

Modified:
   z3/Five/branch/Five-1.2/CHANGES.txt
   z3/Five/branch/Five-1.2/monkey.py
Log:
Added monkey so that ++skin++ works with Zope <= 2.8.4

Modified: z3/Five/branch/Five-1.2/CHANGES.txt
==============================================================================
--- z3/Five/branch/Five-1.2/CHANGES.txt	(original)
+++ z3/Five/branch/Five-1.2/CHANGES.txt	Fri Dec  2 21:23:17 2005
@@ -99,6 +99,8 @@
 
 * Cleaned up security test.
 
+* Added monkey so that ++skin++ works with Zope <= 2.8.4.
+
 Five 1.2b (2005-11-02)
 ======================
 

Modified: z3/Five/branch/Five-1.2/monkey.py
==============================================================================
--- z3/Five/branch/Five-1.2/monkey.py	(original)
+++ z3/Five/branch/Five-1.2/monkey.py	Fri Dec  2 21:23:17 2005
@@ -27,6 +27,7 @@
     interfaces.monkey()
     i18n.monkey()
     localsites_monkey()
+    skins_monkey()
     zope3_monkey()
 
 def localsites_monkey():
@@ -73,6 +74,15 @@
     from ZPublisher.BaseRequest import BaseRequest
     BaseRequest.close = close
 
+def skins_monkey():
+    """Monkey HTTPRequest, from Zope > 2.8.4
+    """
+    def shiftNameToApplication(self):
+        """see zope.publisher.interfaces.http.IVirtualHostRequest"""
+        # this is needed for ++skin++
+    from ZPublisher.HTTPRequest import HTTPRequest
+    HTTPRequest.shiftNameToApplication = shiftNameToApplication
+
 def zope3_monkey():
     """Zope 3 monkeys to get some Zope 3.2 features.
 


More information about the z3-checkins mailing list