l.a.b.t.MenuAPI : class documentation

Part of lp.app.browser.tales View In Hierarchy

Namespace to give access to the facet menus.

The facet menu can be accessed with an expression like:

tal:define="facetmenu view/menu:facet"

which gives the facet menu of the nearest object along the canonical url chain that has an IFacetMenu adapter.

Method __init__ Undocumented
Method __getattribute__ Retrieve the links associated with a facet.
Method facet Return the IFacetMenu links related to the context.
Method selectedfacetname Undocumented
Method context Undocumented
Method navigation Navigation menu links list.
Method _getMenuLinksAndAttributes Return a dict of the links and attributes of the menu.
Method _has_facet Does the object have the named facet?
Method _request_url Undocumented
Method _facet_menu Return the IFacetMenu related to the context.
def __init__(self, context):
Undocumented
def __getattribute__(self, facet):
Retrieve the links associated with a facet.

It's used with expressions like context/menu:bugs/subscribe.

ReturnsA dictionary mapping the link name to the associated Link object.
RaisesAttributeErrorwhen there is no application menu for the facet.
def _getMenuLinksAndAttributes(self, menu):
Return a dict of the links and attributes of the menu.
def _has_facet(self, facet):
Does the object have the named facet?
def _request_url(self):
Undocumented
def facet(self):
Return the IFacetMenu links related to the context.
def _facet_menu(self):
Return the IFacetMenu related to the context.
def selectedfacetname(self):
Undocumented
@property
def context(self):
Undocumented
@property
def navigation(self):
Navigation menu links list.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.