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

cal in Noi

The lino_noi.lib.cal adds calendar functionality.

All code snippets on this page (lines starting with >>>) are being tested as part of our development workflow. The following snippet initializes a demo project to use throughout this page.

>>> from lino_book.projects.noi1e.startup 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>)>