1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-31 19:50:55 +00:00

- Capture previous version of event pre-overwrite for use in notification hooks

- Use previous version of event in email hooks to determine added/deleted/updated email type
This commit is contained in:
Nate Harris 2025-07-14 00:16:19 -06:00
parent e4b337d3ff
commit 80dc4995cf
10 changed files with 274 additions and 110 deletions

View file

@ -102,9 +102,9 @@ class ApplicationPartProppatch(ApplicationBase):
item)
if xml_content is not None:
hook_notification_item = HookNotificationItem(
HookNotificationItemTypes.CPATCH,
access.path,
DefusedET.tostring(
notification_item_type=HookNotificationItemTypes.CPATCH,
path=access.path,
new_content=DefusedET.tostring(
xml_content,
encoding=self._encoding
).decode(encoding=self._encoding)