Coverage for lino/modlib/summaries/__init__.py : 0%

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
# Copyright 2016 Luc Saffre # License: BSD (see file COPYING for details)
"""Installs a framework for defining summary tables.
.. autosummary:: :toctree:
mixins
"""
from lino.api import ad, _
class Plugin(ad.Plugin): """See :doc:`/dev/plugins`.
.. attribute:: start_year .. attribute:: end_year
""" verbose_name = _("Summaries") start_year = None end_year = None
def on_init(self): if self.end_year is None: self.end_year = self.site.today().year if self.start_year is None: self.start_year = self.end_year - 2
def setup_config_menu(self, site, profile, m): g = site.plugins.system m = m.add_menu(g.app_label, g.verbose_name) m.add_action('system.SiteConfig', 'check_summaries')
|