[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - SimpleSecurityPolicies.py:1.1.2.3

Fred L. Drake, Jr. fdrake@acm.org
Wed, 27 Feb 2002 17:32:44 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv18021

Modified Files:
      Tag: Zope-3x-branch
	SimpleSecurityPolicies.py 
Log Message:
Make sure we pass useful information to Unauthorized so the exception can be
printed.

=== Zope3/lib/python/Zope/App/Security/SimpleSecurityPolicies.py 1.1.2.2 => 1.1.2.3 ===
         
     def validate( self, name, value, context ):
-        raise Unauthorized
+        raise Unauthorized(name=name, value=value)
 
     def checkPermission( sel, permission, object, context ):
         return 0