[CMF-checkins] CVS: Products/CMFCore/tests -
test_PortalFolder.py:1.21.4.12
Tres Seaver
tseaver at zope.com
Thu Feb 17 16:06:57 EST 2005
Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv3764/CMFCore/tests
Modified Files:
Tag: CMF-1_4-branch
test_PortalFolder.py
Log Message:
- Port Jim's test fix from Zope 2.7's OFS.tests.testCopySupport.
=== Products/CMFCore/tests/test_PortalFolder.py 1.21.4.11 => 1.21.4.12 ===
--- Products/CMFCore/tests/test_PortalFolder.py:1.21.4.11 Wed Aug 25 13:33:16 2004
+++ Products/CMFCore/tests/test_PortalFolder.py Thu Feb 17 16:06:57 2005
@@ -12,6 +12,7 @@
import cStringIO
from AccessControl import SecurityManager
+from AccessControl import Unauthorized
from Acquisition import Implicit
from Acquisition import aq_base
from DateTime import DateTime
@@ -756,7 +757,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