EventAggregator

Description

The EventAggregator macro for MoinMoin can be used to display event calendars or listings which obtain their data from pages belonging to specific categories (such as CategoryEvents) or from remote event sources. The start and end dates are read from the page describing each event, and the calendar is automatically filled out with the details of each event, colouring each event period in a specially generated colour. Maps showing event locations are also supported, given the availability of appropriate map images and location information.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

EventAggregator-0.10.2.tar.bz2

0.10.2

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.10.1.tar.bz2

0.10.1

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.10.tar.bz2

0.10

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.9.tar.bz2

0.9

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.5.tar.bz2

0.8.5

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.4.tar.bz2

0.8.4

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.3.tar.bz2

0.8.3

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.2.tar.bz2

0.8.2

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.1.tar.bz2

0.8.1

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.8.tar.bz2

0.8

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.7.1.tar.gz

0.7.1

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.7.tar.gz

0.7

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.6.4.tar.gz

0.6.4

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.6.3.tar.gz

0.6.3

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.6.2.tar.gz

0.6.2

1.6, 1.7, 1.8, 1.9

README.txt

EventAggregator-0.6.1.tar.gz

0.6.1

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.6.tar.gz

0.6

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.5.tar.gz

0.5

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.4.tar.gz

0.4

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.3.tar.gz

0.3

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.2.tar.gz

0.2

1.5, 1.6, 1.7, 1.8

README.txt

EventAggregator-0.1.tar.gz

0.1

1.5, 1.6, 1.7, 1.8

README.txt

Installation

See the bundled documentation for installation instructions. EventAggregator is most conveniently installed using moinsetup.

Usage

Put <<EventAggregator(CategoryEvents)>>, substituting your preferred category names as the arguments to select categories from which events will be aggregated and shown. Alternatively, put <<EventAggregator(source=GriCal)>>, substituting your preferred event source (or sources, one per parameter) from which events will be aggregated and shown.

See also ActionMarket/EventAggregator for documentation on the EventAggregatorSummary action which provides iCalendar and RSS 2.0 download support for this macro, together with details of the EventAggregatorNewEvent action which provides convenient event creation through a form displayed on the currently shown page.

Examples

## Show multiple categories:
<<EventAggregator(CategoryEvents,CategoryTraining)>>

## Show a category's events as a list:
<<EventAggregator(CategoryEvents,mode=list)>>

## Show a category's events repeating the name in every consecutive day of an event:
<<EventAggregator(CategoryEvents,names=daily)>>

## Show a category's events for this and next month:
<<EventAggregator(CategoryEvents,start=current,end=current+1)>>

## Show a category's events for this and next month with navigation controls:
<<EventAggregator(CategoryEvents,start=current,end=current+1,calendar=events)>>

## Show the events published in a Wiki category and by the GriCal service for this month
## with controls and a map view showing a European map:
<<EventAggregator(CategoryEvents, source=GriCal, start=current, end=current, calendar=sources, map=europe)>>

Screenshots

Map View

(New in 0.7)

The map view with navigation controls.

Day View

(New in 0.7)

The day view with navigation controls.

Month Calendar View

The calendar view with navigation controls.

Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013 Paul Boddie <paul AT boddie DOT org DOT uk>

Some patches provided by the following contributors:

Copyright (C) 2009 Cristian Rigamonti <rigamonti AT fsfeurope DOT org>

Some pieces of MoinMoin code were used in this work - typically pieces which demonstrate how to perform certain common tasks (as found in various macros and actions) - and are thus covered by the following copyrights:

Copyright (C) 2000-2004 Juergen Hermann <jh AT web DOT de>

Copyright (C) 2003-2008 ThomasWaldmann

Copyright (C) 2004-2006 AlexanderSchremmer

Copyright (C) 2007 ReimarBauer

License

GNU General Public License version 2 or later

Important Notices

In release 0.10, the EventAggregatorSupport module has been converted into a package. Upon upgrading, it may be necessary to locate the source and compiled module files (EventAggregatorSupport.py and EventAggregatorSupport.pyc) and remove them. Otherwise, these files may disrupt the functioning of the newly- installed software.

In release 0.9, much of the common support code has been moved to the MoinSupport distribution, thus introducing that distribution as a dependency which must be installed for EventAggregator to work. See the documentation regarding dependencies for further details.

Release 0.8.4 fixes time zone offset calculations for time regimes west of the prime meridian.

Release 0.8.3 fixes end dates in events aggregated from remote iCalendar sources.

Release 0.7.1 restores MoinMoin 1.9.x compatibility which was accidentally lost in the 0.7 release.

Release 0.6.4 fixes the download/subscription pop-up elements where calendars are open-ended, this having caused the macro to fail completely when showing such calendars.

Release 0.6.2 fixes various bugs in HTML production done by the actions. It is strongly recommended to upgrade from earlier versions to this release.

In release 0.6.2, support for MoinMoin 1.5.x has been dropped. Since usage of the Xapian search software is practically a necessary part of deploying this solution, and yet Xapian only became integrated with MoinMoin from version 1.6 onwards, few deployments should have involved MoinMoin 1.5.x.

In release 0.6, support for event times has been introduced. Due to the complicated nature of times, time zones, time regimes, and so on, the behaviour of the software may change in future versions to support common use-cases in a more convenient fashion. Please be aware that implicitly chosen or generated time or time zone information may change for events, particularly those whose times are ambiguous or ill-defined. It is highly recommended that the pytz library be installed - see the documentation regarding dependencies for more information.

In release 0.5, the "download this calendar" and "subscribe to this calendar" links have been fixed to return only events within the specified period and to work with day- and month-relative calendars. Users who have bookmarks in their Web browser or feed reader should replace these bookmarks by visiting the bookmarked page and acquiring new versions of these links, once EventAggregator has been upgraded.

Bugs

Fixed

Suggestions

Dependencies

The Xapian search software is highly recommended, if not technically essential, for the acceptable performance of the EventAggregator macro since the macro makes use of search routines in MoinMoin that can dominate the time spent processing requests. See HelpOnXapian for installing Xapian and getting acceptable performance.

The vContent package is required for the iCalendar functionality in EventAggregator. Archive links are available on the file browser page for the current snapshot.

The MoinSupport package is required for general functionality used by EventAggregator. Archive links are available on the file browser page for the current snapshot.

Discussion

Verbatim

The action "EventAggregatorNewEvent" use for certain fields the macro "Verbatim". This macro can't handle a comma in the text, 'coz it is used for separting arguments. if a user save something like this   Summary:: <<Verbatim(Red, 101 Adrenaline)>>  the macro fails with an error message. Also its possible that the user use quotes, and so on . I modified the macro, do you have any other idea?

--- /MoinMoin/macro/Verbatim.py 2013-08-13 10:17:47.000000000 +0000
+++ Verbatim.py 2013-10-12 12:44:01.359222708 +0000
@@ -8,5 +8,5 @@
 
 Dependencies = []
 
-def macro_Verbatim(macro, text=u''):
-    return macro.formatter.escapedText(text)
+def execute(macro, args):
+    return macro.formatter.escapedText(u''.join(args))

now even something like this  ",asdf",tes,"t  works

-- MarcelHäfner 2013-10-12 12:57:05

Caching for better performance

I have a few hunderd events on my wiki (and I do not really want to delete the old outdated events; i like to have them for archive). The wiki itselfs runs unfortunately in a shared hosting environment and if I got a certain higher server load (loadavg) the e.g. calendar view gets a bit too slow (over 5-10s pageload, even with xapian enabled). I modified the following, any other ideas?

-- MarcelHäfner 2013-10-14 22:44:15

MoinMoin: MacroMarket/EventAggregator (last edited 2014-03-29 15:09:24 by PaulBoddie)