Conversation
The debug_dump_communication / PYTHON_CALDAV_COMMDUMP feature was lost during the v3.0 refactor. Extract it into a shared _dump_communication() helper in caldav.lib.error so the logic is not duplicated between the sync (_sync_request) and async (_async_request) code paths. Fixes #638 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When search() is called with a full calendar-query XML and the server does not support search.comp-type.optional, the code raised NotImplementedError. Fall back to a single REPORT with the XML as-is (comp_class auto-detected from response data) for both the sync and async code paths. Fixes #637 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Registers the CLASS property variant of the is-not-defined search feature, matching the existing .category and .dtend sub-features. Required by caldav-server-tester's CheckIsNotDefined check. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A NotImplementedError was replaced with proper code for #637 and a the debug communication log has been restored, both for async and sync, without any code duplication, and with test code this time.
I'm lumping them together as one PR, even if it's two separate issues - just because I'm lazy (but it's probably still better than committing directly to the main branch).
The "fix" for #637 is a bit optimistic. At the other hand, this seems like a weird and deprecated corner case.
raise NotImplementedError(("full xml given, and it has to be patched to include comp_type")#637): handle full XML in _search_with_comptypes instead of raising