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

Steve Alexander steve@cat-box.net
Wed, 23 Apr 2003 14:18:33 -0400


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

Modified Files:
	checker.py 
Log Message:
Reverted my change as Guido pointed out why exception classes need to
be unwrapped as well as instances. This needs more thinking about
though, as no tests failed...

If all extension instances are unwrapped, and extension classes are
included inline in the code, then there is no problem with comparison.

I'll talk to people and experiment tomorrow, and perhaps re-check this in.


=== Zope3/src/zope/security/checker.py 1.18 => 1.19 ===
--- Zope3/src/zope/security/checker.py:1.18	Wed Apr 23 13:38:49 2003
+++ Zope3/src/zope/security/checker.py	Wed Apr 23 14:18:02 2003
@@ -449,7 +449,7 @@
                          '__str__']),
     types.InstanceType: _instanceChecker,
     Proxy: NoProxy,
-    types.ClassType: _typeChecker,  # XXX Check that this is right.
+    types.ClassType: _classChecker,
     types.FunctionType: _callableChecker,
     types.MethodType: _callableChecker,
     types.BuiltinFunctionType: _callableChecker,