[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - Checker.py:1.1.4.5.4.6
Jim Fulton
jim@zope.com
Tue, 4 Jun 2002 15:58:48 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv26422
Modified Files:
Tag: Zope3InWonderland-branch
Checker.py
Log Message:
Added support for the __Security_checker__ attribute in the proxy
function. This should probably be moved into selectChecker.
=== Zope3/lib/python/Zope/Security/Checker.py 1.1.4.5.4.5 => 1.1.4.5.4.6 ===
'See Zope.Security.IChecker.IChecker'
# Now we need to create a proxy
- checker = selectChecker(value)
+
+ checker = getattr(value, '__Security_checker__', None)
if checker is None:
- return value
+ checker = selectChecker(value)
+ if checker is None:
+ return value
return Proxy(value, checker)