l.s.w.m.MenuBase(UserAttributeCache) : class documentation

Part of lp.services.webapp.menu View In Hierarchy

Known subclasses: lp.services.webapp.__init__.ApplicationMenu, lp.services.webapp.__init__.ContextMenu, lp.services.webapp.__init__.FacetMenu, lp.services.webapp.__init__.NavigationMenu, lp.services.webapp.tests.test_menu.TestMenu

Base class for facets and menus.
Method __init__ Undocumented
Method initialize Override this in subclasses to do initialization.
Method initLink Undocumented
Method updateLink Called each time a link is rendered.
Method iterlinks See IMenu.
Method _check_links Undocumented
Method _buildLink Undocumented
Method _get_link Undocumented
Method _rootUrlForSite Return the root URL for the given site.
Method _init_link_data Undocumented

Inherited from UserAttributeCache:

Method account Undocumented
Method user The logged-in Person, or None if there is no one logged in.
def __init__(self, context):
Undocumented
def initialize(self):
Override this in subclasses to do initialization.
def _check_links(self):
Undocumented
def _buildLink(self, name):
Undocumented
def _get_link(self, name):
Undocumented
def _rootUrlForSite(self, site):
Return the root URL for the given site.
def _init_link_data(self):
Undocumented
def initLink(self, linkname, request_url=None):
Undocumented
def updateLink(self, link, request_url, **kwargs):
Called each time a link is rendered.

Override to update the link state as required for the given request.

def iterlinks(self, request_url=None, **kwargs):
See IMenu.
API Documentation for Launchpad, generated by pydoctor at 2019-02-20 00:00:08.