Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Eventlist within Dateperiod #778

Closed
KlausReitzmann opened this issue Jan 31, 2018 · 2 comments
Closed

Get Eventlist within Dateperiod #778

KlausReitzmann opened this issue Jan 31, 2018 · 2 comments
Assignees
Milestone

Comments

@KlausReitzmann
Copy link

KlausReitzmann commented Jan 31, 2018

the follwing request was sent to radicale by a Python caldav file intending to get the Events on Feb 02 2018.
Instead i get the entire calendar as result.
is it as bug or something wrong with the request.

REPORT /home/test.ics/ HTTP/1.1
Host: xxx:5232
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: text/xml
User-Agent: Mozilla/5.0
Depth: 1
Content-Type: application/xml; charset="utf-8"
Content-Length: 439

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

the Python is :


client = caldav.DAVClient(url)
principal = client.principal()
calendars = principal.calendars()
if len(calendars) > 0:
    cal=calendars[0]
    results = cal.date_search( datetime(2018, 2, 2), datetime(2018, 2, 3))
    for event in results:
         print "Found"
         print event

hope someone can help me
regard
klaus

@Unrud
Copy link
Collaborator

Unrud commented Apr 27, 2018

Radicale doesn't support expanding recurring components. There is already a feature request: #662

The filter itself seems to work fine with the current release.

@pbiering
Copy link
Collaborator

pbiering commented Apr 6, 2024

Support is now implemented by #1292, please try master branch and file comment on PR if still a problem

@pbiering pbiering closed this as completed Apr 6, 2024
@pbiering pbiering self-assigned this Apr 6, 2024
@pbiering pbiering added this to the 3.2.x milestone Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants