Part of canonical.launchpad.webapp View In Hierarchy
Add the decorated method to stepto traversals for a class.
A stepto method must take no arguments and return an object for the URL at
that point.
@stepto('+foo')
def traverse_foo(self):
return getUtility(IFoo)
which looks up an object for '+foo', allowing a URL traversal that looks
like:
launchpad.net/.../+foo
See also doc/navigation.txt.
This uses Zope's class advisor stuff to make sure that the path segment
passed to `stepto` is handled by the decorated method.
That is::
cls.__stepto_traversals__[argument] = decorated
Inherited from DecoratorAdvisor:
| Method | __init__ | Undocumented |
| Method | __call__ | Undocumented |
| Method | getValueToStore | Undocumented |
| Method | advise | Undocumented |