lino_xl.lib.votes.choicelists

Choicelists for this plugin.

(This module's source code is available here.)

Classes

Ratings(*args, **kw)

VoteEventCreated(*args, **kwargs)

VoteEvents(*args, **kw)

VoteState(*args, **kwargs)

The state of a vote.

VoteStates(*args, **kw)

The list of possible states of a vote.

class lino_xl.lib.votes.choicelists.VoteState(*args, **kwargs)

Bases: lino.core.workflows.State

The state of a vote.

vote_name

Translatable text. How a vote is called when in this state.

class lino_xl.lib.votes.choicelists.VoteStates(*args, **kw)

Bases: lino.core.workflows.Workflow

The list of possible states of a vote. This is used as choicelist for the state field of a vote.

The default implementation defines the following choices:

author

Reserved for the author's vote. Lino automatically creates an author vote for every author of a ticket (see get_vote_raters).

watching
candidate
assigned
done
rated
cancelled
item_class

alias of VoteState

lino_xl.lib.votes.choicelists.combine()

date, time -> datetime with same date and time fields