Currently, the portal_calendar tool defines which types are looked up in the catalog. See plone.app.portlets, portlets/calendar.py, line 63. So for your needs, anything that has a 'start' and 'end' field which are dates should do, i think. You just modify the portal_calendar tool to also include your sign up sheets, which should have these fields.
(I agree it would be better if the catalog were queried for an interface, with a name like ICalendarEvent, but that's a different story.) Kees Andreas Jung wrote: > On 30.12.2008 16:34 Uhr, David Bain wrote: >> I'm exploring a simple approach to making sign up sheet items be treated >> like events. >> Perhaps using archetypes schemaextender to ensure that it has a start >> time and end time? >> > > Afaik: the calendar checks for types implementing a specific interface. > You might check the CatalogTool.py implementation in order to understand > the calendar implementation. > > -aj > > _______________________________________________ > Product-Developers mailing list > [email protected] > http://lists.plone.org/mailman/listinfo/product-developers _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
