Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

Expanding and filtering

 

 

DAViCal general RSS feed   Index | Next | Previous | View Threaded


davical.general at procura

May 5, 2011, 3:08 AM

Post #1 of 2 (130 views)
Permalink
Expanding and filtering

I've written a Perl-script to display the appointments for a specific
date or between two dates. This works fine for most of the events, but
some reoccurring events that happen once a year (like birthdays) are not
retrieved. This is the XML for the report request:

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:">
<D:prop>
<C:calendar-data>
<C:expand end="' . $end . 'T000000Z" start="' . $start . 'T000000Z"/>
<C:comp name="VCALENDAR">
<C:allprop/>
<C:comp name="VEVENT">
<C:allprop/>
</C:comp>
<C:comp name="VTIMEZONE">
<C:allcomp/>
<C:allprop/>
</C:comp>
</C:comp>
</C:calendar-data>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range end="' . $end . 'T000000Z" start="' . $start . 'T000000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>';

When I leave out the expand part the event is retrieved (along with a
lot of other events that fall outside of the time range?) but the query
takes about twice as long. How can I get all the events for a specific date?

--
Henry


andrew at morphoss

May 16, 2011, 2:41 AM

Post #2 of 2 (118 views)
Permalink
Expanding and filtering [In reply to]

On Thu, 2011-05-05 at 12:08 +0200, Henry Verdonschot wrote:
> I've written a Perl-script to display the appointments for a specific
> date or between two dates. This works fine for most of the events, but
> some reoccurring events that happen once a year (like birthdays) are not
> retrieved. This is the XML for the report request:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:">
> <D:prop>
> <C:calendar-data>
> <C:expand end="' . $end . 'T000000Z" start="' . $start . 'T000000Z"/>
> <C:comp name="VCALENDAR">
> <C:allprop/>
> <C:comp name="VEVENT">
> <C:allprop/>
> </C:comp>
> <C:comp name="VTIMEZONE">
> <C:allcomp/>
> <C:allprop/>
> </C:comp>
> </C:comp>
> </C:calendar-data>
> </D:prop>
> <C:filter>
> <C:comp-filter name="VCALENDAR">
> <C:comp-filter name="VEVENT">
> <C:time-range end="' . $end . 'T000000Z" start="' . $start . 'T000000Z"/>
> </C:comp-filter>
> </C:comp-filter>
> </C:filter>
> </C:calendar-query>';
>
> When I leave out the expand part the event is retrieved (along with a
> lot of other events that fall outside of the time range?) but the query
> takes about twice as long. How can I get all the events for a specific date?

That sounds like there is some bug in the expansion of the yearly repeat
rule. At present the 'expand' method is the most reliable way of
retrieving an exact set of events in a particular range, though.

Is there anything special about the event in relation to the period you
are requesting?

Also, I'm curious about your

<C:comp name="VCALENDAR">
<C:allprop/>
<C:comp name="VEVENT">
<C:allprop/>
</C:comp>
<C:comp name="VTIMEZONE">
<C:allcomp/>
<C:allprop/>
</C:comp>
</C:comp>

Do you need that to work with other CalDAV servers? I've not found a
client requesting like that before, and I'm curious if you developed
that yourself from extensive reading, or found it somewhere...

Regards,
Andrew McMillan.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Happiness makes up in height what it lacks in length.
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.davical.org/pipermail/davical-users/attachments/20110516/574da934/attachment-0001.pgp>
-------------- next part --------------

DAViCal general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.