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

set_related: allow custom types with set_reversed=False #333

Merged
merged 2 commits into from
Sep 19, 2023

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.

Verified

This commit was signed with the committer’s verified signature.
ssbarnea Sorin Sbarnea
@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.

None yet

2 participants