[CMF-checkins] CVS: Products/CMFCore/tests - test_PortalFolder.py:1.35.2.4

Tres Seaver tseaver at zope.com
Thu Feb 17 16:17:34 EST 2005


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv6401/CMFCore/tests

Modified Files:
      Tag: CMF-1_5-branch
	test_PortalFolder.py 
Log Message:


 - CMFCore.tests.test_PortalFolder:  fixed testing bug copied forward
   from OFS.tests.testCopySupport.


=== Products/CMFCore/tests/test_PortalFolder.py 1.35.2.3 => 1.35.2.4 ===
--- Products/CMFCore/tests/test_PortalFolder.py:1.35.2.3	Fri Oct 15 13:42:10 2004
+++ Products/CMFCore/tests/test_PortalFolder.py	Thu Feb 17 16:17:33 2005
@@ -24,6 +24,7 @@
 import cStringIO
 
 from AccessControl import SecurityManager
+from AccessControl import Unauthorized
 from Acquisition import aq_base
 from Acquisition import Implicit
 from DateTime import DateTime
@@ -764,7 +765,9 @@
         self._lambdas = ( validate_lambda, checkPermission_lambda )
 
     def validate( self, *args, **kw ):
-        return self._lambdas[ 0 ]( *args, **kw )
+        if self._lambdas[ 0 ]( *args, **kw ):
+            return True
+        raise Unauthorized
 
     def checkPermission( self, *args, **kw ) :
         return self._lambdas[ 1 ]( *args, **kw )



More information about the CMF-checkins mailing list