utilities for publishing events as a calendar
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file kairios-0.4.tar.gz
.
File metadata
- Download URL: kairios-0.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 958a18c85d1a94d3b0b904916ad3399dc663c49fdb97e97cb05388cb774a0a3d |
|
MD5 | 90b48e989026ba57ca573f05b04a321a |
|
BLAKE2b-256 | 8f7931ce0ed030508838f167df78edcc73c0fbdf659dd2bc0416cb0192e2cc84 |