[Gpe-list] Progress on gpesyncd -- but problems with libeventdb
Neal H. Walfield
neal at walfield.org
Thu Nov 23 16:04:00 CET 2006
At Thu, 23 Nov 2006 14:59:25 +0000,
Graham Cobb wrote:
>
> 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.
>
> 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?
That's the current API, yes.
> 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).
This is what categories are for.
> 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.
I think using event_db_list_for_period is wrong.
Neal
More information about the Gpe-list
mailing list