[z3-five] problems with views
Sidnei da Silva
sidnei at awkly.org
Tue Sep 14 18:37:26 MEST 2004
On Tue, Sep 14, 2004 at 06:32:05PM +0200, Martijn Faassen wrote:
| Hi there,
|
| I am getting a bunch of problems concerning the browser:page directive
| our tests are somehow not catching (anymore?). Basically, the following
| doesn't work anymore:
|
| <browser:page
| for=".interfaces.ISimpleContent"
| template="owl.pt"
| name="owl.html"
| permission="zope2.ViewManagementScreens"
| />
|
| Zope will complain about a missing docstring when you access this
| through the browser.
|
| This is a rather serious problem and I'm really baffled about the tests
| not catching this. Anyone have any idea about what could've happened?
I have a guess. Somehow, after I changed the traversal code to return
None instead of raising a notFoundError, depending on your
configuration, if the view is not found you get that a error about a
missing docstring. I traced it to ZPublisher trying to publish
None.
So, the directive still works, however if it's not found, depending on
your setup you may get a None instead of a NotFoundError.
--
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
<slyphon> then I'm the happiest loser in the phone book!
More information about the z3-five
mailing list