Enhance readability according to PEP8
This commit is contained in:
parent
f593ab0fbd
commit
7ae764fd4b
@ -68,10 +68,10 @@ INITIAL_CONFIG = {
|
|||||||
"courier_socket": ""},
|
"courier_socket": ""},
|
||||||
"storage": {
|
"storage": {
|
||||||
"type": "filesystem",
|
"type": "filesystem",
|
||||||
"filesystem_folder":
|
"filesystem_folder": os.path.expanduser(
|
||||||
os.path.expanduser("~/.config/radicale/collections"),
|
"~/.config/radicale/collections"),
|
||||||
"git_folder":
|
"git_folder": os.path.expanduser(
|
||||||
os.path.expanduser("~/.config/radicale/collections")},
|
"~/.config/radicale/collections")},
|
||||||
"logging": {
|
"logging": {
|
||||||
"config": "/etc/radicale/logging",
|
"config": "/etc/radicale/logging",
|
||||||
"debug": "False",
|
"debug": "False",
|
||||||
|
@ -239,8 +239,7 @@ def _propfind_response(path, item, props, user):
|
|||||||
tag = ET.Element(_tag("D", "href"))
|
tag = ET.Element(_tag("D", "href"))
|
||||||
tag.text = path
|
tag.text = path
|
||||||
element.append(tag)
|
element.append(tag)
|
||||||
elif tag in (
|
elif tag in (_tag("D", "principal-collection-set"),
|
||||||
_tag("D", "principal-collection-set"),
|
|
||||||
_tag("C", "calendar-user-address-set"),
|
_tag("C", "calendar-user-address-set"),
|
||||||
_tag("CR", "addressbook-home-set"),
|
_tag("CR", "addressbook-home-set"),
|
||||||
_tag("C", "calendar-home-set")):
|
_tag("C", "calendar-home-set")):
|
||||||
@ -425,8 +424,7 @@ def report(path, xml_request, collection):
|
|||||||
props = [prop.tag for prop in prop_element]
|
props = [prop.tag for prop in prop_element]
|
||||||
|
|
||||||
if collection:
|
if collection:
|
||||||
if root.tag in (
|
if root.tag in (_tag("C", "calendar-multiget"),
|
||||||
_tag("C", "calendar-multiget"),
|
|
||||||
_tag("CR", "addressbook-multiget")):
|
_tag("CR", "addressbook-multiget")):
|
||||||
# Read rfc4791-7.9 for info
|
# Read rfc4791-7.9 for info
|
||||||
hreferences = set(
|
hreferences = set(
|
||||||
@ -485,8 +483,8 @@ def report(path, xml_request, collection):
|
|||||||
element = ET.Element(tag)
|
element = ET.Element(tag)
|
||||||
if tag == _tag("D", "getetag"):
|
if tag == _tag("D", "getetag"):
|
||||||
element.text = item.etag
|
element.text = item.etag
|
||||||
elif tag in (
|
elif tag in (_tag("C", "calendar-data"),
|
||||||
_tag("C", "calendar-data"), _tag("CR", "address-data")):
|
_tag("CR", "address-data")):
|
||||||
if isinstance(item, ical.Component):
|
if isinstance(item, ical.Component):
|
||||||
element.text = ical.serialize(
|
element.text = ical.serialize(
|
||||||
collection_tag, collection_headers,
|
collection_tag, collection_headers,
|
||||||
|
Loading…
Reference in New Issue
Block a user