lino.modlib.checkdata

Adds functionality for handling data problems.

See checkdata : High-level integrity tests.

roles

User roles for lino.modlib.checkdata.

fixtures.checkdata

Runs the checkdata management command with --fix option.

management.commands.checkdata

Defines the checkdata management command:

(This module's source code is available here.)

Classes

Plugin(site, app_label, app_name, ...)

The config descriptor for this plugin.

class lino.modlib.checkdata.Plugin(site, app_label, app_name, app_module, needed_by)

Bases: lino.core.plugin.Plugin

The config descriptor for this plugin.

responsible_user

The username of the main checkdata responsible, i.e. a designated user who will be attributed to data problems for which no specific responible could be designated (returned by the checker's get_responsible_user method).

The default value for this is None, except on a demo site (i.e. which has is_demo_site set to True) where it is "'robin'.

on_plugins_loaded(site)

Set responsible_user to "'robin' if this is a demo site (is_demo_site).