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

cal : Calendar functionality in Noi

The lino_noi.lib.cal adds calendar functionality.

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_book.projects.noi1e.settings.demo')
>>> from lino.api.doctest import *
>>> ses = rt.login('jean')
>>> cal.Task(user=ses.get_user())
Task(user=7,priority=<xl.Priorities.normal:30>,state=<cal.TaskStates.todo:10>)

Don’t read me

Verify the window actions of some actors (#2784):

>>> for ba in rt.models.cal.MyEntries.get_actions():
...     if ba.action.is_window_action():
...         ba
<BoundAction(cal.MyEntries, <lino.core.actions.ShowInsert insert ('New')>)>
<BoundAction(cal.MyEntries, <lino.core.actions.ShowDetail detail ('Detail')>)>
<BoundAction(cal.MyEntries, <lino.core.actions.ShowTable grid>)>