[Zope-Coders] Changes to ZPublisher

Chris McDonough chrism at plope.com
Wed Oct 6 13:42:49 EDT 2004


On Wed, 2004-10-06 at 13:36, Sidnei da Silva wrote:
> On Wed, Oct 06, 2004 at 01:30:40PM -0400, Chris McDonough wrote:
> | > - Tres said that NotFound should not be raised by application code,
> | >   but only by ZPublisher.
> | 
> | Agreed.  Although, maybe in the case of __bt__, you could bend this
> | rule?  I really don't know what the right answer is.
> 
> I could, but then it breaks PageTemplates path expressions. :(

Yup! ;-)

> | > So, just to clarify, are you ok with converting the
> | > AttributeError/KeyError to NotFound on ZPublisher and not trying to
> | > fallback to __getattr__/__getitem__?
> | 
> | I guess I'd be -0 on it given this explanation of the problem you're
> | trying to solve.
> 
> That's good enough for me :)

OK, but I reserve the right to send the PSU after you when it hides one
of my application errors. ;-)

- C




More information about the Zope-Coders mailing list