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:
parent
380acebd71
commit
0a84905383
4 changed files with 245 additions and 8 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue