System User 15 years ago
parent
commit
55d67e629d
2 changed files with 3 additions and 3 deletions
  1. 1 1
      radicale/__init__.py
  2. 2 2
      radicale/xmlutils.py

+ 1 - 1
radicale/__init__.py

@@ -46,7 +46,7 @@ except ImportError:
     import BaseHTTPServer as server
 # pylint: enable=F0401
 
-from radicale import acl, config, ical, xmlutils
+from radicale import acl, config, ical, xmlutils, log
 
 
 VERSION = "git"

+ 2 - 2
radicale/xmlutils.py

@@ -84,7 +84,7 @@ def propfind(path, xml_request, calendar, depth, request):
     """Read and answer PROPFIND requests.
 
     Read rfc4918-9.1 for info.
-
+    
     """
     # Reading request
     root = ET.fromstring(xml_request)
@@ -138,7 +138,7 @@ def propfind(path, xml_request, calendar, depth, request):
             elif tag == _tag("D", "getcontenttype"):
                 element.text = "text/calendar"
             elif tag == _tag("D", "getetag"):
-                element.text = element.etag
+                element.text = element.tag
             elif tag == _tag("D", "displayname"):
                 element.text = calendar.name
             elif tag == _tag("D", "supported-report-set"):