2021-01-27 14:55:28 +01:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
2020-12-24 00:41:29 +01:00
|
|
|
MAIL_VOTERS = (
|
|
|
|
"Dear {full_name},\n"
|
|
|
|
"\n"
|
|
|
|
"\n"
|
|
|
|
"Election URL: {election_url}\n"
|
|
|
|
"\n"
|
|
|
|
"Your voter ID: {username}\n"
|
|
|
|
"Your password: {password}\n"
|
|
|
|
"\n"
|
|
|
|
"-- \n"
|
|
|
|
"Kadenios"
|
|
|
|
)
|
2021-01-27 14:55:28 +01:00
|
|
|
|
|
|
|
CONNECTION_METHODS = {
|
|
|
|
"pwd": _("mot de passe"),
|
|
|
|
"cas": _("CAS"),
|
|
|
|
}
|
2021-03-19 11:48:38 +01:00
|
|
|
|
|
|
|
QUESTION_TYPES = [
|
|
|
|
("assentiment", _("Assentiment")),
|
2021-03-19 22:24:27 +01:00
|
|
|
("uninominal", _("Uninominal")),
|
2021-03-19 11:48:38 +01:00
|
|
|
]
|
2021-03-19 12:04:21 +01:00
|
|
|
|
|
|
|
VOTE_RULES = {
|
|
|
|
"assentiment": _(
|
|
|
|
"Le mode de scrutin pour cette question est un vote par assentiment. "
|
|
|
|
"Vous pouvez donc sélectionner autant d'options que vous souhaitez. "
|
|
|
|
"Vous pouvez également ne sélectionner aucune option."
|
2021-03-19 22:24:27 +01:00
|
|
|
),
|
|
|
|
"uninominal": _(
|
|
|
|
"Le mode de scrutin pour cette question est un vote uninominal. "
|
|
|
|
"Vous ne pouvez donc sélectionner qu'une seule option."
|
|
|
|
),
|
2021-03-19 12:04:21 +01:00
|
|
|
}
|
2021-03-19 14:25:13 +01:00
|
|
|
|
|
|
|
CAST_FUNCTIONS = {
|
|
|
|
"assentiment": "cast_select",
|
2021-03-19 22:24:27 +01:00
|
|
|
"uninominal": "cast_select",
|
2021-03-19 14:25:13 +01:00
|
|
|
}
|
2021-03-19 16:08:02 +01:00
|
|
|
|
|
|
|
TALLY_FUNCTIONS = {
|
|
|
|
"assentiment": "tally_select",
|
2021-03-19 22:24:27 +01:00
|
|
|
"uninominal": "tally_select",
|
|
|
|
}
|
|
|
|
|
|
|
|
VALIDATE_FUNCTIONS = {
|
|
|
|
"assentiment": "always_true",
|
|
|
|
"uninominal": "unique_selected",
|
2021-03-19 16:08:02 +01:00
|
|
|
}
|