[DM] (un)restrictedTraverse depending on request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Wishlist
|
Andreas Jung |
Bug Description
2. Introduction
Zope 2.11 has integrated the Zope view lookup directly into traversal, both the ZPublisher traversal as well as [un]restrictedT
3. Feature
Ensure that [un]restrictedT
Of course, if a view should be looked up, this will still fail when no request is available. Only traversals not requiring views should succeed without request.
4. Example Use Cases
Many of our scripts do not have a natural request. While it would be possible to give them an artificial one, it is more natural to change Zope not to insist on a request for [un]restrictedT
Changed in zope2: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
The zope2 project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope2.