Skip to content
Discussion options

You must be logged in to vote

Well, I figured it out. To push an edited event back to the server, I need to wrap it in a VCALENDAR and then send it back.

This updates the remove event:

    ...
    # edit the title of the icalendar Event instance
    fetched_caldav_event.icalendar_component["summary"] = "halloween party 2025 ^^"  # new summary/title (added "2025")
    fetched_caldav_event.icalendar_component["sequence"] = 4  # not sure if it is needed to later update the event, we set it regardless to an higher value
    logger.info(f"edited icalendar event we will use to update the existing one:\n{to_ical_str(fetched_caldav_event.icalendar_component)}")
    
    # wrap the event in a VCALENDAR
    cal = Calendar()
    c…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@tobixen
Comment options

@RememberTheAir
Comment options

Answer selected by RememberTheAir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants