diff options
author | Jason Madden <jamadden@gmail.com> | 2017-11-08 11:51:03 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-11-08 11:51:03 -0600 |
commit | fbc54516fcdaa1b516606e6ac2c6b569bd25ed94 (patch) | |
tree | 7192b316e31a25f7e0b6ddde522a79087fc7868e /src/zope/traversing/publicationtraverse.py | |
parent | 7e3ebd8032aaa081637bc2c378416da607960584 (diff) | |
download | zope-traversing-rtd-docs.tar.gz |
Publish docs using Sphinx.rtd-docs
Some doc formatting fixes and cleanups. Add quite a bit of docs about namespaces and the various ones we supply.
Fixes #5
Diffstat (limited to 'src/zope/traversing/publicationtraverse.py')
-rw-r--r-- | src/zope/traversing/publicationtraverse.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/zope/traversing/publicationtraverse.py b/src/zope/traversing/publicationtraverse.py index 603d0c6..efa4046 100644 --- a/src/zope/traversing/publicationtraverse.py +++ b/src/zope/traversing/publicationtraverse.py @@ -30,16 +30,19 @@ class PublicationTraverser(object): """Traversal used for publication. The significant differences from - zope.traversing.adapters.traversePathElement() are: + `zope.traversing.adapters.traversePathElement` are: - - Instead of adapting each traversed object to ITraversable, this - version multi-adapts (ob, request) to IPublishTraverse. + - Instead of adapting each traversed object to ITraversable, + this version multi-adapts (ob, request) to + `zope.publisher.interfaces.IPublishTraverse`. - - This version wraps a security proxy around each traversed object. + - This version wraps a security proxy around each traversed + object. - - This version raises NotFound rather than LocationError. + - This version raises `zope.publisher.interfaces.NotFound` + rather than `zope.location.interfaces.LocationError`. - - This version has a method, traverseRelativeURL(), that + - This version has a method, :meth:`traverseRelativeURL`, that supports "browserDefault" traversal. """ def proxy(self, ob): @@ -126,6 +129,9 @@ PublicationTraverse = PublicationTraverser class PublicationTraverserWithoutProxy(PublicationTraverse): + """ + A `PublicationTraverse` that does not add security proxies. + """ def proxy(self, ob): return ob |