[Zope3-dev] suggestion/request re Forbidden errors
Garrett Smith
garrett@mojave-corp.com
Tue, 15 Jul 2003 12:17:31 -0500
It would be very handy to provide object info when raising
ForbiddenAttribute in checker, line 173:
if name !=3D '__iter__' or hasattr(object, name):
__traceback_supplement__ =3D (TracebackSupplement, object)
raise ForbiddenAttribute, name
For example:
raise ForbiddenAttribute, '%s for %s' % (name, object)
This is usually a matter of adjusting permissions and it would help
*greatly* to know what object the check failed on.
-- Garrett