Source

django-swingcms / swingcms / agenda / _settings.py

Full commit
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.utils.translation import ugettext_lazy as _



AGENDA_FROM_DELTA_DAY = 0 # now, the past is expressed with negative value
AGENDA_TO_DELTA_DAY = 2*30 # around 2 month from now

GLOBAL_PERMS = (
    ('edit', "/static/agenda/css/base.css"),
)

###########################################
## STATIC FILES IMPORTED IN HEAD SECTION ##
###########################################


COMMON_CSS_FILES = (
    'agenda/css/base.css',
)

COMMON_JS_FILES = (
)

#############################################
## APP SETTINGS MERGED IN PROJECT SETTINGS ##
#############################################


TEMPLATES = {
    'agenda_as_calendar': {
        'view': (
            ("agenda/agenda_as_calendar_plugin.html", _("view plugin agenda as calendar")),
        ),
    },
    'agenda_as_list': {
        'view': (
            ("agenda/agenda_as_list_plugin.html", _("view plugin agenda as list")),
        ),
    },
}

ADMIN_OPTIONS = (
    ("edit", "/agenda/css/base.css", "presentation", _("Edit base css."), "/edit/text?path=/static/agenda/css/base.css"),
)

PLUGINS = (
    ("agenda_as_calendar", _("Agenda month events calendar box.")),
    ("agenda_as_list", _("Agenda next events list box.")),
)