[Zope] Unauthorized vs. Unauthorized vs. Unauthorized

Derrick 'dman' Hudson dman at dman13.dyndns.org
Sun Jul 18 14:28:34 EDT 2004


On Sat, Jul 17, 2004 at 09:06:21AM +0200, Roché Compaan wrote:
| * 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

Thank you.

-D

-- 
He who walks with the wise grows wise,
but a companion of fools suffers harm.
        Proverbs 13:20
 
www: http://dman13.dyndns.org/~dman/            jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope/attachments/20040718/c6b2f978/attachment.bin


More information about the Zope mailing list