Clean the calendar-timezone proppatch setter
This commit is contained in:
parent
cd33a6cc51
commit
4893f94920
@ -374,11 +374,9 @@ def proppatch(path, xml_request, collection):
|
|||||||
|
|
||||||
with collection.props as collection_props:
|
with collection.props as collection_props:
|
||||||
for short_name, value in props_to_set.items():
|
for short_name, value in props_to_set.items():
|
||||||
if short_name == 'C:calendar-timezone':
|
if short_name.split(":")[-1] == "calendar-timezone":
|
||||||
collection.replace('', value)
|
collection.replace(None, value)
|
||||||
collection.write()
|
collection_props[short_name] = value
|
||||||
else:
|
|
||||||
collection_props[short_name] = value
|
|
||||||
_add_propstat_to(response, short_name, 200)
|
_add_propstat_to(response, short_name, 200)
|
||||||
for short_name in props_to_remove:
|
for short_name in props_to_remove:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user