[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/ Added a missing commit to a test set up.

Jim Fulton jim at zope.com
Wed Sep 1 14:18:21 EDT 2004


Log message for revision 27392:
  Added a missing commit to a test set up.
  This exposed a security configuration problem for zptpages.
  Sigh.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/ftests/test_functional.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/configure.zcml


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/ftests/test_functional.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/ftests/test_functional.py	2004-09-01 17:56:38 UTC (rev 27391)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/ftests/test_functional.py	2004-09-01 18:18:21 UTC (rev 27392)
@@ -17,6 +17,7 @@
 """
 
 import unittest
+import transaction
 from zope.app.tests.functional import SampleFunctionalTest, BrowserTestCase
 from zope.app.tests.functional import FunctionalDocFileSuite
 
@@ -57,8 +58,8 @@
             <h1 tal:condition="ignored" />
             </tal:tag>'''
         root['setcookie'] = page
+        transaction.commit()
 
-
     def tearDown(self):
         root = self.getRootFolder()
         del root['getcookies']

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/configure.zcml	2004-09-01 17:56:38 UTC (rev 27391)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/configure.zcml	2004-09-01 18:18:21 UTC (rev 27392)
@@ -58,6 +58,8 @@
       for=".interfaces.IZPTPage"
       provides="zope.app.size.interfaces.ISized"
       factory=".zptpage.Sized"
+      trusted="y"
+      permission="zope.ManageContent"
       />
 
 



More information about the Zope3-Checkins mailing list