MonthCalendar Macro for moin 1.2
I needed a calendar thing, so I took the MonthCalendar of ThomasWaldmann, patched it to work with 1.2 and adapted it to work the way I think it's best.
Get the Macro: MonthCalendar.py
Example: see ColixTreffen
Changes
changed to work with moin 1.2 (page.url needs request) -- hmmm, should have looked on MacroMarket first, would have saved some work...
- removed mixed tab/space indent
- removed background-color style (what good did this?)
- changed example css
- if the page is the same, the base date in query string is used for the table. This means: if you have three month tables with monthoffset +0,+1,+2, changing the month of one calendar will move all calendars.
- included in moin--main--1.3--patch-677
added class to table tag, add css class layer cal-cell to all td elements for better formatting (sizes).
- changed example css to the one on our LUG wiki
Todo
- multi page stuff is broken, at least the way I think it should work. Perhaps I change it if I need it.
Ideas
- perhaps it would be useful to turn this in a notification system?
add a TimeSheet macro for the day. So you can organize the events of the day with start and stop an perhaps alarm
- create a script that looks for alarms and sends email if it find some...
I would love to be able to sync MonthCalendar with an iCal calendar (mozilla, evolution, whatever). this would let me publish stuff o nthe web that's in my (somewhat more complex) personal calendar. How easy do you think it would be to do that? (I can see it would be not so hard to automatically generate moin pages from ical, but a lot harder to check whether the entry already exists in Moin/add an event to iCal automagically).
- -Matt Price
I've worked out a cery clumsy first step to this, using the iCal.py module floating around (it's not relaly adequate!) and some glue of my own to check whether an iCal event is listed in the moin calendar, and either create a new day-page or add text to an existing one. The new text gives the relevant event data... I can't sync back, which is of course a bummer, but a rather difficult problem I guess given the flexibility of WikiMarkup. And my code is very ugly. But I'd be happy to share it w/ anyone interested!
Hi Matt, I'd be very interested in seeing your work, I'm planning to start a project to accomplish the same. Any links? -- RobertPolyn