[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Testing/makerequest.py Apply Philipp's fix to Testing.makerequest as well.

Stefan H. Holek stefan at epy.co.at
Sun Mar 26 20:37:04 EST 2006


Log message for revision 66220:
  Apply Philipp's fix to Testing.makerequest as well.
  

Changed:
  U   Zope/branches/2.9/lib/python/Testing/makerequest.py

-=-
Modified: Zope/branches/2.9/lib/python/Testing/makerequest.py
===================================================================
--- Zope/branches/2.9/lib/python/Testing/makerequest.py	2006-03-27 01:29:34 UTC (rev 66219)
+++ Zope/branches/2.9/lib/python/Testing/makerequest.py	2006-03-27 01:37:01 UTC (rev 66220)
@@ -36,4 +36,10 @@
     environ['SERVER_PORT']='80'
     environ['REQUEST_METHOD'] = 'GET'
     req = HTTPRequest(stdin, environ, resp)
+
+    # set Zope3-style default skin so that the request is usable for
+    # Zope3-style view look-ups
+    from zope.app.publication.browser import setDefaultSkin
+    setDefaultSkin(req)
+
     return app.__of__(RequestContainer(REQUEST = req))



More information about the Zope-Checkins mailing list