Skip to content

Conversation

@tobixen
Copy link
Member

@tobixen tobixen commented Nov 14, 2025

The calendar.search-method takes tons and tons of various parameters, and many special cases in the search method makes it desirable to make recursive calls - which again is very cumbersome when there are too many parameters to keep track of.

I decided to split out the search logic into a separate file search.py, create a new class ComponentSearcher that can hold most of the search-related parameters. I've also tried to make some logical separation between search filters referencing the icalendar properties, other search filters and search options, as well as the caldav-specific search options.

I do hope that this separation makes the code flow easier to understand and more flexible to adapt and develop. I do have plans both for client-side filtering, searching and accessing servers that doesn't speak caldav and much else.

@tobixen tobixen merged commit 2f22085 into master Nov 19, 2025
8 checks passed
@tobixen tobixen deleted the issue562 branch November 19, 2025 21:08
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