[Zope-Coders] Changes to ZPublisher

Sidnei da Silva sidnei at awkly.org
Wed Oct 6 13:36:49 EDT 2004


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. :(

| > 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 :)

-- 
Sidnei da Silva <sidnei at awkly.org>
http://awkly.org - dreamcatching :: making your dreams come true
http://www.enfoldsystems.com
http://plone.org/about/team#dreamcatcher

<allexpro> discovering twisted is probably the best thing that has happened in my life


More information about the Zope-Coders mailing list