Two Unauthorized exceptions, why?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Won't Fix
|
Low
|
Unassigned |
Bug Description
There are two exception classes called Unauthorized defined in Zope: zExceptions.
The problem is that both classes are used in Zope without any rhyme or reason, and if you have an except clause you cannot catch zExceptions.
I don't know what the rationale is to override getValueName in AccessControl.
The standard workaround is to always look for zExceptions. Unauthorized in except clauses.