Generated: Sun 2013-03-24 21:11 CET
Source file: /home/tobi/Projects/calendarium/src/calendarium/constants.py
Stats: 4 executed, 0 missed, 1 excluded, 26 ignored
"""Constants for the ``calendarium`` app."""
from django.utils.translation import ugettext_lazy as _
FREQUENCIES = {
'YEARLY': 'YEARLY',
'MONTHLY': 'MONTHLY',
'WEEKLY': 'WEEKLY',
'DAILY': 'DAILY',
}
FREQUENCY_CHOICES = (
(FREQUENCIES['YEARLY'], _('Yearly')),
(FREQUENCIES['MONTHLY'], _('Monthly')),
(FREQUENCIES['WEEKLY'], _('Weekly')),
(FREQUENCIES['DAILY'], _('Daily')),
)
OCCURRENCE_DECISIONS = {
'all': 'all',
'following': 'following',
'this one': 'this one',
}
OCCURRENCE_DECISION_CHOICESS = (
(OCCURRENCE_DECISIONS['all'], _('all')),
(OCCURRENCE_DECISIONS['following'], _('following')),
(OCCURRENCE_DECISIONS['this one'], _('this one')),
)