Calendar tasks¶
Tasks are a part of the lino_welfare.modlib.cal
plugin.
Side note: Code snippets (lines starting with >>>
) in this document get
tested as part of our development workflow. The following
initialization snippet tells you which demo project is being used in
this document.
>>> from lino import startup
>>> startup('lino_welfare.projects.mathieu.settings.demo')
>>> from lino.api.doctest import *
My tasks¶
The My tasks table (lino_xl.lib.cal.MyTasks
) is visible in
the dashboard.
This table shows tasks that are due in the next 30 days. These edge values
may get customized locally in the settings.py
file. Our demo project
sets mytasks_start_date
to
-30, which means that users don’t see tasks that are older than 30 days.
>>> print(dd.plugins.cal.mytasks_start_date)
None
>>> dd.plugins.cal.mytasks_end_date
30
For example Mélanie has one task in that table:
>>> rt.login('melanie').show(cal.MyTasks)
========== =============== ============================= ============================= ==========================
Priorité Date de début Description brève Workflow Bénéficiaire
---------- --------------- ----------------------------- ----------------------------- --------------------------
Normale 12/06/2014 Projet termine dans un mois **☐ à faire** → [☑] [☒] [⚠] RADERMACHER Edgard (157)
========== =============== ============================= ============================= ==========================
Actually Mélanie has more than one open tasks. But they are all more than 30
days away in the future. If she manually sets end_date
to blank then she sees them.
>>> pv = dict(end_date=None)
>>> rt.login('melanie').show(cal.MyTasks, param_values=pv, language="en")
========== ============ ============================= =========================== ==========================
Priority Start date Short description Workflow Client
---------- ------------ ----------------------------- --------------------------- --------------------------
Normal 12/06/2014 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] RADERMACHER Edgard (157)
Normal 01/11/2014 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] AUSDEMWALD Alfons (116)
Normal 12/12/2014 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] ENGELS Edgar (129)
Normal 02/02/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] RADERMACHER Guido (159)
Normal 09/02/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] LAZARUS Line (144)
Normal 28/02/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] ÖSTGES Otto (168)
Normal 23/03/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] MEESSEN Melissa (147)
Normal 11/04/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] RADERMACHER Hedi (161)
Normal 21/04/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] RADERMACHER Edgard (157)
Normal 08/05/2015 Projet termine dans un mois **☐ To do** → [☑] [☒] [⚠] JACOBS Jacqueline (137)
========== ============ ============================= =========================== ==========================
Note that tasks are sorted ascending by start date.