python-caldav / caldav

Apache License 2.0
313 stars 91 forks source link

Getting ATTENDEE PARTSTAT value #348

Closed GeorgeNikitinNV closed 7 months ago

GeorgeNikitinNV commented 7 months ago

Thanks for this nice lib, it really saves a lot of trouble!

Is there a way to get from EVENT a subj? From what I have found

event.icalendar_component.get("ATTENDEE")

returns only emails, but not the PARTSTAT value.

GeorgeNikitinNV commented 7 months ago

Have found the following solution, might be helpful for someone else:

event.icalendar_component.get("ATTENDEE")[0].params['PARTSTAT']
tobixen commented 7 months ago

This is outside the scope of the caldav library, that belongs to the icalendar library (I was recently aware that there also exists an ics library). I found some code in the caldav library that I once wrote up to handle calendar invites ... but nevermind, I see you already found out of this :-)