소스 검색

Add simple support for calendar-user-address-set (references #181)

Guillaume Ayoub 15 년 전
부모
커밋
9874129bbb
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      radicale/xmlutils.py

+ 4 - 5
radicale/xmlutils.py

@@ -140,11 +140,10 @@ def propfind(path, xml_request, calendar, depth):
                 tag = ET.Element(_tag("D", "href"))
                 tag.text = path
                 element.append(tag)
-            elif tag == _tag("D", "principal-collection-set"):
-                tag = ET.Element(_tag("D", "href"))
-                tag.text = path
-                element.append(tag)
-            elif tag == _tag("C", "calendar-home-set"):
+            elif tag in (
+                _tag("D", "principal-collection-set"),
+                _tag("C", "calendar-user-address-set"),
+                _tag("C", "calendar-home-set")):
                 tag = ET.Element(_tag("D", "href"))
                 tag.text = path
                 element.append(tag)