[Zope-dev] brain.getObject and traversal

Roché Compaan roche at upfrontsystems.co.za
Thu Mar 31 08:08:41 EST 2005


On Thu, 2005-03-31 at 13:02 +0100, Chris Withers wrote:
> >> Would anyone object if I wrote tests and changed the implementation to 
> >> raise exceptions, including Unauthorized, instead of returning None?
> > 
> > Unauthorized in getObject is out of the question, that would be new 
> > behaviour.
> 
> Well, in 2.8, new behaviour is expected, right?
> I really passionately believe that we should not be returnining None in 
> Zope 2.8, and since 2.8 hasn't quite hit beta yet I'm very keen to see 
> it fixed asap.
> 
> Any objections?

No, I agree that it should raise Unauthorized. Just make sure that this
is communicated properly at release time.

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za



More information about the Zope-Dev mailing list