sharing/bday/template: implementation of placeholder replacement

This commit is contained in:
Peter Bieringer
2026-05-28 22:08:10 +02:00
parent d4c545f6e4
commit 66e97cbc5b
3 changed files with 82 additions and 8 deletions

View File

@@ -223,7 +223,7 @@ class BaseCollection:
"""Get the HTTP-datetime of when the collection was modified."""
raise NotImplementedError
def serialize(self, vcf_to_ics: bool = False) -> str:
def serialize(self, vcf_to_ics: bool = False, ShareActions: dict = {}) -> str:
"""Get the unicode string representing the whole collection."""
if self.tag == "VCALENDAR":
in_vcalendar = False
@@ -288,7 +288,7 @@ class BaseCollection:
items = []
for item in self.get_all():
logger.trace("storage/convert VCF to ICS: %r:", item)
item_ics = item.convert_vcf_to_ics()
item_ics = item.convert_vcf_to_ics(ShareActions=ShareActions)
if item_ics is None:
continue
else: