Function
zope.traversing.api.traverse

Signature

traverse(object, path, default=<object object at 0x403d9510>, request=None)

Documentation String

Traverse path relative to the given object.

path is a string with path segments separated by /.

request is passed in when traversing from presentation code. This allows paths like @@foo to work.

Raises TraversalError if path cannot be found

Note: calling traverse with a path argument taken from an untrusted source, such as an HTTP request form variable, is a bad idea. It could allow a maliciously constructed request to call code unexpectedly. Consider using traverseName instead.