[Zope] Unauthorized vs. Unauthorized vs. Unauthorized
Roché Compaan
roche at upfrontsystems.co.za
Sat Jul 17 03:06:21 EDT 2004
* Derrick 'dman' Hudson <dman at 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
More information about the Zope
mailing list