Skip to content

Commit da0a6e3

Browse files
committed
work in progress
1 parent a672f58 commit da0a6e3

3 files changed

Lines changed: 18 additions & 6 deletions

File tree

caldav/compatibility_hints.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ class FeatureSet:
7575
}
7676
}
7777
},
78+
"save-load": {
79+
"description": "it's possible to save and load objects to the calendar",
80+
"features": {
81+
"event": {"description": "it's possible to save and load events to the calendar"},
82+
"todo": {
83+
"description": "it's possible to save and load objects to the calendar",
84+
"features": {
85+
"mixed-calendar": {"description": "The same calendar may contain both events and tasks"},
86+
}
87+
},
88+
}
89+
},
7890
"search": {
7991
"description": "calendar MUST support searching for objects using the REPORT method, as specified in RFC4791, section 7",
8092
"features": {
@@ -90,6 +102,8 @@ class FeatureSet:
90102
}
91103
}
92104
},
105+
## TODO: perhaps recurrences should not be a root node? Perhaps it
106+
## should be a sub-node under search and save-load?
93107
"recurrences": {
94108
"description": "Support for recurring events and tasks",
95109
"features": {
@@ -535,8 +549,6 @@ def _dotted_feature_set_list(self, feature_path, feature_node, compact, feature_
535549
}
536550

537551
xandikos = {
538-
"recurrences.expanded-search": {'support': 'unsupported'},
539-
"recurrences.search-includes-implicit-recurrences": {'support': 'unsupported'},
540552
"old_flags": [
541553
## https://github.com/jelmer/xandikos/issues/8
542554
'date_todo_search_ignores_duration',

caldav/davclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,8 +1093,8 @@ def get_davclient(
10931093
idx = os.environ.get("PYTHON_CALDAV_TEST_SERVER_IDX")
10941094
try:
10951095
idx = int(idx)
1096-
except ValueError:
1097-
pass
1096+
except (ValueError, TypeError):
1097+
idx = None
10981098
name = name or os.environ.get("PYTHON_CALDAV_TEST_SERVER_NAME")
10991099
if name and not idx:
11001100
try:

tests/test_caldav.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,7 +2360,7 @@ def testTodoDatesearch(self):
23602360
self.skip_on_compatibility_flag("read_only")
23612361
# bedeworks does not support VTODO
23622362
self.skip_on_compatibility_flag("no_todo")
2363-
self.skip_on_compatibility_flag("no_todo_datesearch")
2363+
self.skip_unless_support("search.time-range.todo")
23642364
self.skip_on_compatibility_flag("no_search")
23652365
c = self._fixCalendar(supported_calendar_component_set=["VTODO"])
23662366

@@ -3099,7 +3099,7 @@ def testRecurringDateWithExceptionSearch(self):
30993099

31003100
asserts_on_results = [r]
31013101
if self.check_support(
3102-
"recurrences.expanded-search.recurrence-exception-handling"
3102+
"recurrences.expanded-search.exception"
31033103
):
31043104
asserts_on_results.append(rs)
31053105

0 commit comments

Comments
 (0)