Publication Traverser

Publication Traverser

class zope.traversing.publicationtraverse.PublicationTraverser[source]

Bases: object

Traversal used for publication.

The significant differences from zope.traversing.adapters.traversePathElement are:

  • 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 raises zope.publisher.interfaces.NotFound rather than zope.location.interfaces.LocationError.
  • This version has a method, traverseRelativeURL(), that supports “browserDefault” traversal.
traverseRelativeURL(request, ob, path)[source]

Path traversal that includes browserDefault paths

zope.traversing.publicationtraverse.PublicationTraverse

alias of PublicationTraverser

class zope.traversing.publicationtraverse.PublicationTraverserWithoutProxy[source]

Bases: zope.traversing.publicationtraverse.PublicationTraverser

A PublicationTraverse that does not add security proxies.