xl : General utilities for XL plugins

The lino.modlib.xl plugin must be installed in every application which uses at least one Lino XL plugin. It does not define any models, but a locale directory with translation messages for Django.

It also adds some utilities.

This is a tested document. The following instructions are used for initialization:

>>> from lino import startup
>>> startup('lino_book.projects.min1.settings')
>>> from lino.api.doctest import *

Which means that code snippets in this document are tested using the lino_book.projects.min1 demo project.

The Priorities choicelist

class lino_xl.lib.xl.Priorities
>>> rt.show(xl.Priorities)
======= ========== ==========
 value   name       text
------- ---------- ----------
 10      critical   Critical
 20      high       High
 30      normal     Normal
 40      low        Low
 50      very_low   Very Low
======= ========== ==========

Used by lino_xl.lib.cal.Task.priority and lino_xl.lib.tickets.Ticket.priority.

The locale directory of XL