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
Add the compatibility with MoinMoin 1.8 (in addition to 1.9)
- Add the mime type of the calendar when sending back the file
Version 0.1
First version, compatible with MoinMoin 1.9
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 and license
Copyright © FlorianBirée, 2010. Under the GNU GPL.