collective/plone.app.event — pull request #33 by romanofski (2012-05-22 04:02:27+00:00)
Title: More occurrence changes.

This is quite a huge patch, but it includes quite a few refactorings:

* IRecurrence().occurrences now returns occurence objects.
* The events portlet lists all occurrences.
* I've moved two new generic functions into base:

* get_occurrences: Returns all occurrence objects between a timeframe and based on the result of a previous catalog query[1]

* guess_date_from: Refactored, because I need to extract the dates on various places now (e.g. the traverser and the occurrence view).

* Added a new view which can show all occurrences. I'm currently working on implementing 'batching' mode.

[1] - The reason for not calling get_portal_events in here, but expecting a list of brains is the result of the occurrence listing in the events portlet. The portlet caches the catalog query and the rendering. The caching decorator expects brains to make a getURL call.

I would really love to get some feedback with these patches. Especially with the page which shows occurrences, even though it is not "finished" yet.