[Zope-Coders] Hidden Attribute Error

Christian Theune ct@gocept.com
05 Mar 2003 09:33:33 +0100


Hi.

This costed me a lot of time to debug. I had an AttributeError which was
within the security/authorization machinery.

It was hidden by the reraise (with Unauthorized) here:

lib/python/AccessControl/ZopeGuards.py line 61-64

I propose to only raise it as Unauthorized if in Production mode. Debug
mode shouldn't hide those kinds of errors.

If you are fine with that, I can give a fix for that.

Cheers,
Christian


-- 
Christian Theune, gocept gmbh & co.kg
phone: +49-3641-233526 mobile: +49-179-7808366
mail: ct@gocept.com