[Gpe-list] Progress on gpesyncd -- but problems with libeventdb

Graham Cobb g+gpe at cobb.uk.net
Thu Nov 23 15:59:25 CET 2006


On Thursday 23 November 2006 11:59, Neal H. Walfield wrote:
> > 2) There is no event DB API to return all the event sources in the
> > database.
>
> Use event_calendar_list_events to get all the events in a calendar.
> To get all of the calendars, use event_db_list_event_calendars.

Thanks, Neal.

Does the event DB model guarantee that every event appears in exactly one 
calendar?  I realise that the current implementation only puts an event in 
one calendar but should I rely on that?  

Intuitively I assumed that calendars were just collections of events and that 
there was no reason why an event might not be in more than one calendar 
(although that is not the way the code works today).  For example, I could 
imagine wanting a calendar for my business events and another for my personal 
events and also a calendar for the events I choose to share with my group of 
friends (which would contain some events from each of the other two 
calendars).

As I already have code to remove duplicates (to work with 
event_db_list_for_period) I may as well leave it in place but still switch to 
using event_calendar_list_events .  That will make it easier to allow people 
to synchronise specific calendars one day.

Graham



More information about the Gpe-list mailing list