[Zope-Checkins] SVN: Zope/branches/philikon-fix-lookup-priorities/lib/python/Testing/ZopeTestCase/utils.py make sure that request has correct default skin when its created for

Philipp von Weitershausen philikon at philikon.de
Sun Mar 26 14:20:47 EST 2006


Log message for revision 66184:
  make sure that request has correct default skin when its created for
  ZopeTestCase tests.
  

Changed:
  U   Zope/branches/philikon-fix-lookup-priorities/lib/python/Testing/ZopeTestCase/utils.py

-=-
Modified: Zope/branches/philikon-fix-lookup-priorities/lib/python/Testing/ZopeTestCase/utils.py
===================================================================
--- Zope/branches/philikon-fix-lookup-priorities/lib/python/Testing/ZopeTestCase/utils.py	2006-03-26 19:16:21 UTC (rev 66183)
+++ Zope/branches/philikon-fix-lookup-priorities/lib/python/Testing/ZopeTestCase/utils.py	2006-03-26 19:20:46 UTC (rev 66184)
@@ -138,6 +138,12 @@
     request = Request(sys.stdin, environ, response)
     request._steps = ['noobject'] # Fake a published object
     request['ACTUAL_URL'] = request.get('URL') # Zope 2.7.4
+
+    # 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(request)
+
     return app.__of__(RequestContainer(REQUEST=request))
 
 



More information about the Zope-Checkins mailing list