Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
http://luc.lino-framework.org/blog/2016/1223.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaffre committed Dec 23, 2016
1 parent 831eb2f commit 384a5b2
Showing 1 changed file with 64 additions and 3 deletions.
67 changes: 64 additions & 3 deletions docs/specs/cal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,62 @@ Calendar
>>> startup('lino_book.projects.min2.settings.demo')
>>> from lino.api.doctest import *
This document explains some basic thinga about the Calendar plugin
:mod:`lino_xl.lib.cal`.
This document explains some basic things about Lino's calendar plugin.

See also :mod:`lino_xl.lib.cal.utils`.
Calendar entries
================

>>> show_fields(rt.models.cal.Event,
... 'start_date start_time end_date end_time user summary description event_type state')
+---------------+---------------------+---------------------------------------------------------------+
| Internal name | Verbose name | Help text |
+===============+=====================+===============================================================+
| start_date | Start date | |
+---------------+---------------------+---------------------------------------------------------------+
| start_time | Start time | |
+---------------+---------------------+---------------------------------------------------------------+
| end_date | End Date | |
+---------------+---------------------+---------------------------------------------------------------+
| end_time | End Time | These four fields define the duration of this entry. |
| | | Only start_date is mandatory. |
+---------------+---------------------+---------------------------------------------------------------+
| user | Responsible user | The responsible user. |
+---------------+---------------------+---------------------------------------------------------------+
| summary | Summary | A one-line descriptive text. |
+---------------+---------------------+---------------------------------------------------------------+
| description | Description | A longer descriptive text. |
+---------------+---------------------+---------------------------------------------------------------+
| event_type | Calendar Event Type | The type of this event. Every calendar event should have this |
| | | field pointing to a given EventType, which holds |
| | | extended configurable information about this event. |
+---------------+---------------------+---------------------------------------------------------------+
| state | State | The state of this entry. The state can change according to |
| | | rules defined by the workflow, that's why we sometimes refer |
| | | to it as the life cycle. |
+---------------+---------------------+---------------------------------------------------------------+


Lifecycle of a calendar entry
=============================

Every calendar entry has a given **state** which can change The state
of this entry. The state can change according to rules defined by the
workflow, that's why we sometimes refer to it as the life cycle.

The default list of choices for this field contains the following
values.

>>> rt.show(cal.EventStates)
======= ============ ============ ======== =================== ======== ============= =========
value name text Symbol Edit participants Stable Transparent No auto
------- ------------ ------------ -------- ------------------- -------- ------------- ---------
10 suggested Suggested ? Yes No No No
20 draft Draft ☐ Yes No No No
50 took_place Took place ☑ Yes Yes No No
70 cancelled Cancelled ☒ No Yes Yes Yes
40 published Published ☼ Yes Yes No No
======= ============ ============ ======== =================== ======== ============= =========
<BLANKLINE>


Duration units
Expand Down Expand Up @@ -216,3 +268,12 @@ Calendar entry #30 All Souls' Day (31.10.2014)
============ ============ ========== ========= ====== ==================
<BLANKLINE>


Other
=====

The source code is in :mod:`lino_xl.lib.cal`.
Applications can extend this plugin.

See also :mod:`lino_xl.lib.cal.utils`.

0 comments on commit 384a5b2

Please sign in to comment.