Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

# Copyright 2014-2016 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

"""Defines some system models, especially the :class:`SiteConfig` model. 

 

This app should usually be installed in every Lino application. 

But there are exceptions, e.g. :ref:`lino.tutorial.polls` 

or :doc:`/tutorials/de_BE/index` don't. 

 

.. autosummary:: 

   :toctree: 

 

   choicelists 

   mixins 

   models 

   tests 

 

 

""" 

 

from lino import ad 

from django.utils.translation import ugettext_lazy as _ 

 

 

class Plugin(ad.Plugin): 

    "See :doc:`/dev/plugins`." 

 

    verbose_name = _("System") 

 

    needs_plugins = ['lino.modlib.printing'] 

 

    def setup_config_menu(self, site, profile, m): 

        system = m.add_menu(self.app_label, self.verbose_name) 

        system.add_instance_action(site.site_config)