[Zope3-checkins] CVS: Zope3/src/zope/security - checker.py:1.20

Steve Alexander steve@cat-box.net
Fri, 25 Apr 2003 08:48:02 -0400


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv31443/src/zope/security

Modified Files:
	checker.py 
Log Message:
Fixed http://collector.zope.org/Zope3-dev/143

All classic classes other than Exceptions now use _typeChecker.


=== Zope3/src/zope/security/checker.py 1.19 => 1.20 ===
--- Zope3/src/zope/security/checker.py:1.19	Wed Apr 23 14:18:02 2003
+++ Zope3/src/zope/security/checker.py	Fri Apr 25 08:48:01 2003
@@ -385,13 +385,10 @@
     return checker
 
 def _classChecker(class_):
-    # XXX This function does not appear to be used.
-    #     What is it for?
-    checker = _checkers.get(class_, _typeChecker)
-    if checker is _typeChecker and issubclass(class_, Exception):
-        return NoProxy # XXX we should be more careful
+    if issubclass(class_, Exception):
+        return NoProxy  # XXX we should be more careful
 
-    return checker
+    return _typeChecker
 
 def _moduleChecker(module):
     return _checkers.get(module, _typeChecker)