[Zope-CMF] [dev] Unauthorized confusion and Zope 2.4 compatibility

Stefan H. Holek stefan at epy.co.at
Tue Jan 6 09:54:25 EST 2004


I would like to see AccessControl.Unauthorized aliased to 
zExceptions.Unauthorized and CMFUnauthorizedError removed altogether. 
There seems to be little point in having multiple types of Unauthorized 
exceptions (except to stay backward compatible that is).

FWIW, AccessControl.Unauthorized is accessible to restricted code 
whereas zExceptions.Unauthorized is not.

Stefan


On Montag, Jän 5, 2004, at 21:11 Europe/Vienna, Yuppie wrote:

> I propose to use zExceptions.Unauthorized to catch Unauthorized 
> (catches both) and AccessControl.Unauthorized to raise Unauthorized 
> (can be catched by both).
>
> CMFCoreExceptions.CMFUnauthorizedError is already a subclass of 
> AccessControl.Unauthorized and could be used to raise Unauthorized.
>
> CMFCoreExceptions.Unauthorized could become an alias of 
> zExceptions.Unauthorized.
>
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.               /Pete McBreen/




More information about the Zope-CMF mailing list