[Zope-Checkins] CVS: Zope3/lib/python/Zope/Exceptions - __init__.py:1.2.14.6 _forbidden.py:1.1.2.4

Jim Fulton jim@zope.com
Sun, 28 Apr 2002 13:17:17 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Exceptions
In directory cvs.zope.org:/tmp/cvs-serv17050/lib/python/Zope/Exceptions

Modified Files:
      Tag: Zope-3x-branch
	__init__.py _forbidden.py 
Log Message:
HOTYB: Merged SecurityProxy-branch into main branch.  

All tests pass and folders can be listed and added through the web.
It is likely that most other things don't work and will need to be
fixed. The reason is that many accesses that should have been checked
before are now being checked and additional checks and thinking about
permissions and security settings are needed.

I'm in the process of drafting a paper for the wiki that describes the
changes in more detail.


=== Zope3/lib/python/Zope/Exceptions/__init__.py 1.2.14.5 => 1.2.14.6 ===
 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.4 ===
     """A resource cannot be accessed under any circumstances
     """
+
+class ForbiddenAttribute(Forbidden, AttributeError):
+    """An attribute is unavailable because it is forbidden (private)
+    """
+
+