[Zope-Checkins] CVS: Zope3/lib/python/Zope/Exceptions - __init__.py:1.2.14.5.6.1 _forbidden.py:1.1.2.3.6.1
Jim Fulton
jim@zope.com
Sat, 27 Apr 2002 12:59:24 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Exceptions
In directory cvs.zope.org:/tmp/cvs-serv26931/lib/python/Zope/Exceptions
Modified Files:
Tag: SecurityProxy-branch
__init__.py _forbidden.py
Log Message:
Moved security management modules to Zope.Security.
Added like_unto attribute to protect class so you can say that a class
has the same protections as another class::
<security:protectClass name=".RootFolder." like_unto=".Folder." />
Added some additional calls to removeAllProxies in some component
lookup code while debugging integration of new security model.
Added protections for BTree types.
=== Zope3/lib/python/Zope/Exceptions/__init__.py 1.2.14.5 => 1.2.14.5.6.1 ===
from unauthorized import Unauthorized
from _notfounderror import NotFoundError
-from _forbidden import Forbidden
+from _forbidden import Forbidden, ForbiddenAttribute
from _duplicate import DuplicationError
=== Zope3/lib/python/Zope/Exceptions/_forbidden.py 1.1.2.3 => 1.1.2.3.6.1 ===
"""A resource cannot be accessed under any circumstances
"""
+
+class ForbiddenAttribute(Forbidden, AttributeError):
+ """An attribute is unavailable because it is forbidden (private)
+ """
+
+