17 Jul
2004
17 Jul
'04
7:06 a.m.
* Derrick 'dman' Hudson <dman@dman13.dyndns.org> [2004-07-16 22:49]:
Which Unauthorized exception should I use in my own code? I see the following three imports in other zope code : from AccessControl import Unauthorized from AccessControl.unauthorized import Unauthorized
The above two lines import the same class.
from zExceptions import Unauthorized
AccessControl.Unauthorized extends zExceptions.Unauthorized, so use from AccessControl import Unauthorized -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za