Class
zope.app.apidoc.bookmodule.browser.Menu

Menu View Helper Class

>>> class Chapter(object):
...     title = 'Read Me'
...     path = 'README.txt'
...
...     def getTopicPath(self):
...         return self.path[:-4]
>>> class Node(object):
...     def __init__(self, context):
...         self.context = context
>>> menu = Menu()
>>> chapter = Chapter()
>>> node = Node(chapter)
>>> menu.getMenuTitle(node)
'Read Me'
>>> menu.getMenuLink(node)
'README/show.html'
>>> chapter.path = EMPTYPATH
>>> menu.getMenuLink(node)

Base classes

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses

There are no known subclasses.