Introduction
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)
Installation
Add this to your buildout:
- [buildout]
eggs = collective.traverse
- [instance]
zcml = collective.traverse
And then run buildout.
Changelog
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]
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file collective.traverse-1.1.tar.gz.
File metadata
- Download URL: collective.traverse-1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd318f0d5cbb44e93e406d3487a8d3017ca85677624a63ce41377d6a1dee6f8b
|
|
| MD5 |
04d61c11d484977dd5c87960548d43fd
|
|
| BLAKE2b-256 |
d447c95f9e04d26c5443e73c02155596c612c9827e9336f6586c4b3bfce23438
|