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))
 
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to