1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Add a .pylintrc file, clean code

This commit is contained in:
Guillaume Ayoub 2011-07-14 11:23:19 +02:00
parent 380acebd71
commit 0a84905383
4 changed files with 245 additions and 8 deletions

View file

@ -202,7 +202,8 @@ def _propfind_response(path, item, props, user):
response = ET.Element(_tag("D", "response"))
href = ET.Element(_tag("D", "href"))
href.text = (item.url if is_calendar else "%s/%s" % (path, item.name)).replace('//', '/')
uri = item.url if is_calendar else "%s/%s" % (path, item.name)
href.text = uri.replace("//", "/")
response.append(href)
propstat404 = ET.Element(_tag("D", "propstat"))