Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Traverse to Object by Interface

Project description


This product provides a utility that returns a object which provides a given interface. The returned object could be the given object or any object down the path towards the root.

>>> from collective.traverse.interfaces import ITraverse
>>> from somewhere import IMyInterface
>>> root_traverser = getUtility(ITraverse, name="rootTraverser")
>>> myType = root_traverser(self.context, IMyInterface)


Add this to your buildout:

eggs = collective.traverse
zcml = collective.traverse

And then run buildout.


collective.traverse - 1.1 [20090605]

  • Fixed a recursion bug when using portal_setup. There, somehow parent == context ;) [Daniel Kraft]

collective.traverse - 1.0 Unreleased

  • Initial package structure. [zopeskel]

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
collective.traverse-1.1.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page