Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

xl : General utilities for XL plugins

The lino.modlib.xl plugin is installed in every application that 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.

See also About plugin libraries.

Lines starting with >>> in this document are code snippets that get tested as part of our development workflow.

>>> 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