IPublishTraverse that is part of a view not being invoked
Bug #143765 reported by
Martin Aspeli
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I believe (but I'm unable to write a test now) that if a view implements IPublishTraverse, its publishTraverse() method is never called.
To check, try to edit adding.py in Five and put a pdb or print statement in publishTraverse(). Go to /foo/bar/+/foobar - if I understand things correctly, this should invoke publishTraverse
To post a comment you must log in.
I think what Martin means is that given a URL path like a/b/c with the 'b' object providing IPublishTraverse, the ZPublisher will still look up an IPublishTraverse multi-adapter and not take advantage of b already providing the IPublishTraverse API. 'b' can also be a view, but in general, it can be any object.