The application menu¶
The application menu specifies how the different functionalities of an application are structured when presenting them to the user. There is only one application menu per application, but each user will see only the parts to which they have access permission.
For simple applications you can define the complete menu by overriding the
lino.core.site.Site.setup_menu() method of your application.
An example for this approach is in The mysite/settings.py file. Let's have a look at this application.
>>> from lino import startup >>> startup('lino_book.projects.polls.mysite.settings') >>> from lino.api.doctest import *
You have seen the application menu in a browser window. But you can also show it in a documentation page:
>>> rt.login('robin').show_menu() - Site : About - Polls : Questions, Choices
See also The XL and application menus.