MonthCal2ics action

Purpose

This action provide a iCalendar feed of event sets in a MonthCalendar.

Download

monthcal2ics.py (v0.2)

Usage

Once installed, add ?action=monthcal2ics to the url of a page with a MonthCalendar (or the page specified in the first field of the MonthCalendar macro, if any).

What really does this action?

It takes every event in a range of months around today (specified in the action file, currently one month back and six months forward), and build an iCalendar feed with them. The level 1 header is used as the summary of the event, what is under the header is used as description. If an hour (something like 20h, 18h30 or 12:42) is find in the header, it's used as the start hour of the event (else it's a full day event). If a second hour is found, it's considered as the end of the event, else a default duration (2h) is applied.

The action works well with MoinMoin 1.9 and 1.8, and Mozilla Lightning 1.0b1.

Changelog

Version 0.2

Version 0.1

Known bugs

No event appear in Evolution 2.28.1. But, if you save the calendar and open it as a file on your computer, it works. I don't understand...

Copyright © FlorianBirée, 2010. Under the GNU GPL.

MoinMoin: ActionMarket/MonthCal2ics (last edited 2010-02-05 17:43:46 by FlorianBirée)