[Zope-Checkins] SVN: Zope/trunk/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:23 EST 2006
Log message for revision 66221:
Apply Philipp's fix to Testing.makerequest as well.
Changed:
U Zope/trunk/lib/python/Testing/makerequest.py
-=-
Modified: Zope/trunk/lib/python/Testing/makerequest.py
===================================================================
--- Zope/trunk/lib/python/Testing/makerequest.py 2006-03-27 01:37:01 UTC (rev 66220)
+++ Zope/trunk/lib/python/Testing/makerequest.py 2006-03-27 01:37:22 UTC (rev 66221)
@@ -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