Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kairios-0.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file kairios-0.3.tar.gz.

File metadata

  • Download URL: kairios-0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kairios-0.3.tar.gz
Algorithm Hash digest
SHA256 5d3a36559f59ff94561f603ef053e86893c9f750638d0ee3e03d63f986190231
MD5 a15bdbf23a2d584d2df5dcf14406592d
BLAKE2b-256 3588250f2c11a4489e9b72be11c10b810a32c590b3416ff340dc3c6d71f8b179

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page