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

Steve Alexander steve@cat-box.net
Fri, 20 Jun 2003 02:40:14 -0400


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

Modified Files:
	checker.py 
Log Message:
Added an XXX comment inside a conditional to express surprise at
one possible branch of the code. I'll need to revisit this later.


=== Zope3/src/zope/security/checker.py 1.33 => 1.34 ===
--- Zope3/src/zope/security/checker.py:1.33	Sat Jun  7 14:58:13 2003
+++ Zope3/src/zope/security/checker.py	Fri Jun 20 02:40:12 2003
@@ -76,7 +76,12 @@
             checker = selectChecker(object)
             if checker is None:
                 return object
-
+    else:
+        c = getattr(object, '__Security_checker__', None)
+        if c is not None:
+            pass
+            # XXX This is odd. We're being asked to use a checker that is
+            #     not the "natural" one for this object.
     return Proxy(object, checker)
 
 directlyProvides(ProxyFactory, ISecurityProxyFactory)