Function
zope.traversing.api.traverseName

Signature

traverseName(obj, name, default=<object object at 0x403d9510>, traversable=None, request=None)

Documentation String

Traverse a single step name relative to the given object.

name must be a string. '. and ..' are treated specially, as well as names starting with @ or +. Otherwise name will be treated as a single path segment.

You can explicitly pass in an ITraversable as the traversable argument. If you do not, the given object will be adapted to ITraversable.

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

Raises TraversalError if path cannot be found and default was not provided.