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)
There are no implemented interfaces.
There are no attributes in this class.
getMenuLink(node)
Return the HTML link of the node that is displayed in the menu.
getMenuTitle(node)
Return the title of the node that is displayed in the menu.
There are no known subclasses.