mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Skipped empty proppatch request notifications
This commit is contained in:
parent
90f10f2c4a
commit
9b3bb2de2b
1 changed files with 10 additions and 9 deletions
|
@ -113,6 +113,9 @@ class ApplicationProppatchMixin:
|
||||||
headers = {"DAV": httputils.DAV_HEADERS,
|
headers = {"DAV": httputils.DAV_HEADERS,
|
||||||
"Content-Type": "text/xml; charset=%s" % self._encoding}
|
"Content-Type": "text/xml; charset=%s" % self._encoding}
|
||||||
try:
|
try:
|
||||||
|
xml_answer = xml_proppatch(base_prefix, path, xml_content,
|
||||||
|
item)
|
||||||
|
if xml_content is not None:
|
||||||
hook_notification_item = HookNotificationItem(
|
hook_notification_item = HookNotificationItem(
|
||||||
HookNotificationItemTypes.CPATCH,
|
HookNotificationItemTypes.CPATCH,
|
||||||
access.path,
|
access.path,
|
||||||
|
@ -121,8 +124,6 @@ class ApplicationProppatchMixin:
|
||||||
encoding=self._encoding
|
encoding=self._encoding
|
||||||
).decode(encoding=self._encoding)
|
).decode(encoding=self._encoding)
|
||||||
)
|
)
|
||||||
xml_answer = xml_proppatch(base_prefix, path, xml_content,
|
|
||||||
item)
|
|
||||||
self._hook.notify(hook_notification_item)
|
self._hook.notify(hook_notification_item)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue