[Zope3-checkins] SVN: Zope3/trunk/src/zope/security/checker.py Got
rid of weird branch to check for __Security_checker__ when a
Jim Fulton
jim at zope.com
Thu Jul 8 18:42:58 EDT 2004
Log message for revision 26265:
Got rid of weird branch to check for __Security_checker__ when a
checker was passed to ProxyFactory. The check never did anything and
had no point. The method is advertized to use the passed checker to
override the normal checker. This is used to override the normal
checker when needed.
-=-
Modified: Zope3/trunk/src/zope/security/checker.py
===================================================================
--- Zope3/trunk/src/zope/security/checker.py 2004-07-08 22:42:19 UTC (rev 26264)
+++ Zope3/trunk/src/zope/security/checker.py 2004-07-08 22:42:58 UTC (rev 26265)
@@ -79,12 +79,7 @@
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)
More information about the Zope3-Checkins
mailing list