Skip to content

Conversation

@Zocker1999NET
Copy link
Contributor

Method failed before when using a custom relation type. Specification explicitly allows custom X-Types for non-standardized use cases. This also makes the library future-proof if futher relation types are added.

Also extract RELTYPE_REVERSER constant from method for good practice.

Tested for my use case (using a custom type) locally.

@tobixen
Copy link
Member

tobixen commented Sep 19, 2023

Test breakages on 3.7 and 3.8 does not seem to be related to this patch

@tobixen tobixen added this pull request to the merge queue Sep 19, 2023
Merged via the queue into python-caldav:master with commit ac95378 Sep 19, 2023
@tobixen
Copy link
Member

tobixen commented Sep 19, 2023

Thanks for the contribution. We should also consider RFC 9253 also and extend RELTYPES_REVERSER with the new RELTYPEs.there.

@Zocker1999NET
Copy link
Contributor Author

Thanks for the fast answer & merge

@Zocker1999NET Zocker1999NET deleted the fix-reltype-reverse branch September 19, 2023 14:06
@tobixen
Copy link
Member

tobixen commented Oct 1, 2023

@Zocker1999NET, do you by any chance have the time to comment on my related work in #336 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants