Re: Changes to ZPublisher

Chris McDonough <[email protected]>
Newsgroups gmane.comp.web.zope.coders
Message-ID <1097084568.15156.50.camel@athlon>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.