[Zope-Checkins] SVN: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/PortalTestCase.py Call setupCurrentSkin with REQUEST argument to shut up a deprecation warning.

Stefan H. Holek stefan at epy.co.at
Sun Jun 24 06:25:29 EDT 2007


Log message for revision 77006:
  Call setupCurrentSkin with REQUEST argument to shut up a deprecation warning.
  

Changed:
  U   Zope/branches/2.10/lib/python/Testing/ZopeTestCase/PortalTestCase.py

-=-
Modified: Zope/branches/2.10/lib/python/Testing/ZopeTestCase/PortalTestCase.py
===================================================================
--- Zope/branches/2.10/lib/python/Testing/ZopeTestCase/PortalTestCase.py	2007-06-24 10:25:12 UTC (rev 77005)
+++ Zope/branches/2.10/lib/python/Testing/ZopeTestCase/PortalTestCase.py	2007-06-24 10:25:28 UTC (rev 77006)
@@ -100,7 +100,10 @@
             self.portal.clearCurrentSkin()
         else: # CMF 1.4
             self.portal._v_skindata = None
-        self.portal.setupCurrentSkin()
+        try:
+            self.portal.setupCurrentSkin(self.app.REQUEST)
+        except TypeError:
+            self.portal.setupCurrentSkin()
 
     # Portal interface
 



More information about the Zope-Checkins mailing list