Re: [Evolution-hackers] e_cal_get_object_list query
- From: JP Rosevear <jpr ximian com>
- To: mccann jhu edu
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] e_cal_get_object_list query
- Date: Sat, 29 Nov 2003 18:12:45 -0500
On Sat, 2003-11-29 at 15:30, William Jon McCann wrote:
> Hi,
>
> I'm almost done with a panel clock / calendar integration patch. I am
> having a bit of trouble getting recurrences to work. I'm trying to use
> e_cal_generate_instances. However, I can't get it to find any objects.
> I think I have tracked it down to the following:
>
> query = g_strdup_printf ("(occur-in-time-range? (%lu) (%lu))",
> start, end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> Returns an error, while
>
> query = g_strdup_printf ("(occur-in-time-range? %lu %lu)",
> start, end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> Doesn't return an error but finds no objects, while
>
> iso_start = isodate_from_time_t (start);
> iso_end = isodate_from_time_t (end);
> query = g_strdup_printf ("(occur-in-time-range? (make-time \"%s\")
> (make-time \"%s\"))"
> iso_start, iso_end);
> e_cal_get_object_list (ecal, query, &objects, NULL);
>
> finds objects.
>
> Am I doing something wrong?
Nope, I think I missed implementing direct time_t searches in the
backend sexp stuff - can you submit a patch to libecal to fix this?
-JP
--
JP Rosevear <jpr ximian com>
Ximian, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]