Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Django utilities for publishing events as a calendar
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
kairios Merge pull request #2 from bmihelac/add-template
.travis.yml
LICENSE Update copyright year
MANIFEST.in whitespace
README.rst whitespace
setup.py setup flake8
tox.ini added flake8 configuration

README.rst

kairios

Provides utilities for publishing events as a calendar.

At the moment, it just provides a visual calendar (both large and small) showing which days have events and optionally linking to a day detail page.

Usage

{% load kairios_tags %}

...

{% calendar events %}

where events implements the following protocol:

events.day_url(year, month, day, has_event, **kwargs)
return a link to the page for the given day or None if there is not to be a day link. has_event is a boolean telling this method whether there is an event on the day or not so you can choose whether a day without an event should link or not.
events.month_url(year, month, **kwargs)
return a link to the page for the given month or None if there is not to be a month link.
events_by_day(year, month, **kwargs)
return a dictionary mapping day number to a list of events on that day.

Note that all methods take additional key-word arguments that can be used in the calculation of the return value.

Something went wrong with that request. Please try again.