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

Neal H. Walfield neal at walfield.org
Thu Nov 23 12:59:26 CET 2006


At Thu, 23 Nov 2006 00:53:21 +0000,
Graham Cobb wrote:
>  This uses a copy of the 
> gpe-calender import/export code -- this should really move into one of the 
> libraries (libgpevtype?) so it is being fixed and enhanced in one place.

Yes.

>  The are, however, significant 
> bugs (including crashes) in the export code, particularly with recurrences 
> and alarms.  Once I have got gpesyncd itself working better I will start 
> logging bug reports on the export code.

Please do so.

> There are a couple of more serious obstacles in problems with the event DB 
> library:
> 
> 1) It is not possible to tell if an event with a particular UID exists or not.  
> If event_db_find_by_uid is called with any UID an event will be returned even 
> if there is no such event in the database.   This "phantom" event has no 
> useful data.
> 
> This is not a major problem for gpesyncd as the user should use UIDLIST to see 
> the list of valid UIDs and only ask for them.  But it can cause confusion and 
> it seems like event_db_find_by_uid should really return a NULL if the UID 
> does not exist (which is what the comments in the code say).

The documentation is correct, this is a bug.

> 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.

Neal



More information about the Gpe-list mailing list