Quellcode durchsuchen

Accept VLIST items (fixes #661)

Custom format used by SOGo Connector to store lists of contacts
Unrud vor 8 Jahren
Ursprung
Commit
4533f76df9
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      radicale/storage.py

+ 3 - 0
radicale/storage.py

@@ -167,6 +167,9 @@ def check_and_sanitize_item(vobject_item, is_collection=False, uid=None):
             vobject_item.add("UID").value = uid or random_uuid4()
         elif not object_uid:
             vobject_item.uid.value = uid or random_uuid4()
+    elif vobject_item.name == "VLIST":
+        # Custom format used by SOGo Connector to store lists of contacts
+        pass
     else:
         raise ValueError("Unknown item type: %r" % vobject_item.name)