[CalendarServer-users] [chandler-users] calendar-query REPORT using zanshin
Simone
3nomis at gmail.com
Fri Sep 12 08:09:31 PDT 2008
Hi Grant,
thank you for your useful code!
I have only one doubt left: how can I implement in your code the
"expand XML Element" documented in the RFC4791
("http://rfc.net/rfc4791.html#s9.6.5")?
I would like to use "expand property" to make simple the
implementation of weekly/monthly views, with no need to interpretate
the "recurrence information" of recurrent events within a period.
In RFC4791(http://rfc.net/rfc4791.html#s7.8.3.) I found this xml-code example:
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<C:calendar-data>
<C:expand start="20060103T000000Z"
end="20060105T000000Z"/>
</C:calendar-data>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20060103T000000Z"
end="20060105T000000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
The only difference with you code is this part:
<C:expand start="20060103T000000Z"
end="20060105T000000Z"/>
I tried to edit your code and to add this component with no success
:-/ What should I change to start using the Caldav expansion?
Thank you :-)
Simone
> OK, I put a copy here:
>
> http://svn.osafoundation.org/sandbox/grant/demos/calendar_report.py
>
> Most of the work is done by the queryCalendar() function, the rest is
> setting up twisted and all that. Let me know if you have questions,
>
> --Grant
>
> On 11 Sep, 2008, at 13:24, Simone wrote:
>
>> Hi Grant,
>>
>> don't worry, take your time and thanks very much for help :-)
>>
>> Simone
>>
>>> Sorry, I meant to send you something the other day, but got distracted by
>>> other stuff. I'll send out something today.
>>>
>>> --Grant
>>>
>>> On 10 Sep, 2008, at 02:05, Simone wrote:
>>>
>>>> Hi,
>>>>
>>>> how can I issue a calendar query REPORT to get events in a data range
>>>> using zanshin?
>>>> I know that zanshin doesn't provide API for it, so I have to generate
>>>> the XML request body by myself and issue a REPORT.
>>>> Could somebody please give me a pointer to some doc or give me a
>>>> sample code? I surfed the web without any success :(
>>>>
>>>> tia,
>>>> Simone
>
>
More information about the calendarserver-users
mailing list