Direkt zum Inhalt | Direkt zur Navigation

Benutzerspezifische Werkzeuge
Anmelden
Home Produkte

SaaS

Software as a Service

Hosting

schon ab €14,00!

Software-Entwicklung

Wir programmieren alles, was wir hosten.

Lösungen

Web & E-Commerce

Kollaboration

Hosting & Skalierbarkeit

Support Open Source

Python

PHP

Weitere

Über uns

Kontakt

Wir

Business Solutions Breakfast
Sie sind hier: Startseite Open Source Python collective.traverse

collective.traverse

Traverse to Object by Interface. 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.

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.

 

Download

http://pypi.python.org/pypi/collective.traverse