[Zope-Checkins] CVS: Zope3/lib/python/Zope/Security - Checker.py:1.1.2.4
Jim Fulton
jim@zope.com
Thu, 18 Apr 2002 20:34:57 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Security
In directory cvs.zope.org:/tmp/cvs-serv20751/lib/python/Zope/Security
Modified Files:
Tag: SecurityProxy-branch
Checker.py
Log Message:
added check_setattr implementation to Checker
=== Zope3/lib/python/Zope/Security/Checker.py 1.1.2.3 => 1.1.2.4 ===
check(self.__permission_func, name, object)
+ def check_setattr(self, object, name):
+ 'See Zope.Security.IChecker.IChecker'
+ # YAGNI
+ raise Forbidden("Can't set attributes in untrusted code.")
+
def check(self, object, name):
check(self.__permission_func, name, object)