Coverage for lino/modlib/summaries/management/commands/checksummaries.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
# -*- coding: UTF-8 -*- # Copyright 2016 by Luc Saffre. # License: BSD, see LICENSE for more details. """Defines the :manage:`checksummaries` management command:
.. management_command:: checksummaries
.. py2rst::
from lino.modlib.summaries.management.commands.checksummaries \ import Command print(Command.help)
"""
from __future__ import unicode_literals, print_function
from django.conf import settings from django.core.management.base import BaseCommand
from lino.api import rt
class Command(BaseCommand): args = "[app1.Model1] [app2.Model2] ..." help = """
Update the summary tables.
If no arguments are given, run it on all summaries.
Otherwise (not yet implemented) every positional argument is expected to be a model name in the form `app_label.ModelName`, and only these models are being updated.
"""
def handle(self, *args, **options): ses = rt.login() ses.run(settings.SITE.site_config.check_summaries) # checksummaries(args=args) |