[Checkins] SVN: Zope/trunk/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:13 EDT 2007


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

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

-=-
Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/PortalTestCase.py
===================================================================
--- Zope/trunk/lib/python/Testing/ZopeTestCase/PortalTestCase.py	2007-06-24 08:57:54 UTC (rev 77004)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/PortalTestCase.py	2007-06-24 10:25:12 UTC (rev 77005)
@@ -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 Checkins mailing list