[Checkins] SVN: zc.selenium/branches/wosc-zope2/src/zc/selenium/ moved suite listing code into class to make z2 security happy

Wolfgang Schnerring wosc at wosc.de
Tue Feb 17 04:11:06 EST 2009


Log message for revision 96625:
  moved suite listing code into class to make z2 security happy
  

Changed:
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/configure.zcml
  U   zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.pt
  A   zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.py

-=-
Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/configure.zcml
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/configure.zcml	2009-02-17 09:10:05 UTC (rev 96624)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/configure.zcml	2009-02-17 09:11:06 UTC (rev 96625)
@@ -21,6 +21,7 @@
   <browser:page
       for="*"
       name="zc.selenium.suite"
+      class="zc.selenium.suite.Suite"
       template="suite.pt"
       permission="zope.Public"
       />

Modified: zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.pt
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.pt	2009-02-17 09:10:05 UTC (rev 96624)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.pt	2009-02-17 09:11:06 UTC (rev 96625)
@@ -13,10 +13,10 @@
   <tr><td><b>Test Suite</b></td></tr>
     <tr tal:replace="
         structure
-        python: modules['zc.selenium.pytest'].suite(request)"
+        view/suite"
         >
       <td>
-        <a href="/@@/selenium-no-publish.html">
+        <a href="/@@selenium-no-publish.html">
         Make sure we can elect not to publish</a>
       </td>
     </tr>

Added: zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.py
===================================================================
--- zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.py	                        (rev 0)
+++ zc.selenium/branches/wosc-zope2/src/zc/selenium/suite.py	2009-02-17 09:11:06 UTC (rev 96625)
@@ -0,0 +1,8 @@
+import zc.selenium.pytest
+
+
+class Suite(object):
+    """docstring"""
+
+    def suite(self):
+        return zc.selenium.pytest.suite(self.request)



More information about the Checkins mailing list