trends : Managing trends¶
lino_xl.lib.trends plugin adds functionality for keeping track of
"trending events" in different "areas".
This is a tested document. The following instructions are used for initialization:
>>> import lino >>> lino.startup('lino_book.projects.avanti1.settings') >>> from lino.api.doctest import * >>> from django.db.models import Q
When using this plugin, the application developer should set the
Plugin.subject_model and add
to the detail layout of this model.
- class lino_xl.lib.trends.TrendArea¶
Represents a possible choice for the trend_area field of a
- class lino_xl.lib.trends.TrendStage¶
Whether this stage should cause subject column to be added .
A subject column is a virtual column on the
Plugin.subject_modelthat shows the date of the first event for a given trend stage and subject.
- class lino_xl.lib.trends.TrendEvent¶
The subject we are talking about.
The user who entered this data.
The date when the subject reached the stage.
Pointer to the
A free text field.
- class lino_xl.lib.trends.EventsBySubject¶
Shows all trend events of that subject.
- class lino_xl.lib.trends.TrendObservable¶
Mixin that should be inherited by the
Plugin.subject_modelso that Lino automatically adds virtual columns for each trend stage having