Module Expr Str ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str decorator_list Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str decorator_list Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr BinOpBitOr Call NameLoad keyword NameLoad Call NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpBitOr Call NameLoad keyword NameLoad Call NameLoad keyword AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad Str Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Str Str Expr Call NameLoad Str Call NameLoad Str Str
N/A N/A 
Miscellaneous mixins for `lino.modlib.system`.

 __future__ unicode_literals N/A datetime django.utils.translation ugettext_lazy _ django.db.models Q lino.core.choicelists ChoiceList Choice lino.utils AttrDict YesNo N/A ChoiceList N/A N/A 
    A choicelist with two values "Yes" and "No".

    .. django2rst::

        from lino.modlib.system.choicelists import YesNo
        rt.show(YesNo)

    Used e.g. to define parameter panel fields for BooleanFields::

      foo = dd.YesNo.field(_("Foo"), blank=True)


     N/A verbose_name_plural N/A _ Yes or no N/A N/A add N/A YesNo add_item N/A N/A add y N/A _ Yes yes N/A N/A add n N/A _ No no Genders N/A ChoiceList N/A N/A 
    Defines the two possible choices "male" and "female"
    for the gender of a person.

    .. django2rst::

            from lino.modlib.system.choicelists import Genders
            rt.show(Genders)


    See :ref:`lino.tutorial.human` for examples.
    See :doc:`/dev/choicelists`.
     N/A verbose_name N/A _ Gender N/A N/A add N/A Genders add_item N/A N/A add M N/A _ Male male N/A N/A add F N/A _ Female female PeriodEvent N/A Choice N/A add_filter N/A N/A self qs obj N/A N/A N/A N/A isinstance obj N/A datetime date N/A N/A obj N/A AttrDict start_date obj end_date obj N/A N/A N/A N/A obj start_date None N/A N/A obj end_date None N/A N/A qs N/A N/A N/A self name started N/A N/A qs N/A N/A qs filter start_date__gte N/A obj start_date N/A qs N/A N/A qs filter start_date__lte N/A obj end_date N/A N/A N/A N/A self name ended N/A N/A qs N/A N/A qs filter end_date__isnull False N/A qs N/A N/A qs filter end_date__gte N/A obj start_date N/A qs N/A N/A qs filter end_date__lte N/A obj end_date N/A N/A N/A N/A self name active N/A N/A qs N/A N/A qs filter N/A N/A Q start_date__isnull True N/A Q start_date__lte N/A obj end_date N/A qs N/A N/A qs filter N/A N/A Q end_date__isnull True N/A Q end_date__gte N/A obj start_date N/A qs N/A N/A PeriodEvents N/A ChoiceList N/A N/A The list of things you can observe on a
    :class:`DatePeriod`. The default list has the following
    choices:

    .. django2rst::

        from lino.modlib.system.choicelists import PeriodEvents
        rt.show(PeriodEvents)

     N/A verbose_name N/A _ Observed event N/A verbose_name_plural N/A _ Observed events N/A item_class PeriodEvent N/A N/A add N/A PeriodEvents add_item N/A N/A add 10 N/A _ Starts started N/A N/A add 20 N/A _ Is active active N/A N/A add 30 N/A _ Ends ended