mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-04 18:22:26 +00:00
Fix the GET and REPORT requests for vcards
This commit is contained in:
parent
fd3eacfe01
commit
1dfa887384
1 changed files with 8 additions and 5 deletions
|
@ -53,6 +53,9 @@ def serialize(tag, headers=(), items=()):
|
|||
The collection has the given ``headers`` and ``items``.
|
||||
|
||||
"""
|
||||
if tag == "VCARD" or (tag == "VADDRESSBOOK" and items and len(items) == 1):
|
||||
lines = [items[0].text]
|
||||
else:
|
||||
lines = ["BEGIN:%s" % tag]
|
||||
for part in (headers, items):
|
||||
if part:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue