mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
94854ae7c2
commit
fd279807b0
|
@ -18524,14 +18524,12 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
response_str = None
|
||||
if endpoint_type == 'propfind':
|
||||
response_str = \
|
||||
dav_propfind_response(self.server.base_dir,
|
||||
nickname, self.server.domain,
|
||||
depth, propfind_xml)
|
||||
dav_propfind_response(nickname, propfind_xml)
|
||||
elif endpoint_type == 'put':
|
||||
response_str = \
|
||||
dav_put_response(self.server.base_dir,
|
||||
nickname, self.server.domain,
|
||||
depth, propfind_xml,
|
||||
propfind_xml,
|
||||
self.server.http_prefix,
|
||||
self.server.system_language,
|
||||
self.server.recent_dav_etags)
|
||||
|
@ -18544,7 +18542,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
response_str = \
|
||||
dav_report_response(self.server.base_dir,
|
||||
nickname, self.server.domain,
|
||||
depth, propfind_xml,
|
||||
propfind_xml,
|
||||
self.server.person_cache,
|
||||
self.server.http_prefix,
|
||||
curr_etag,
|
||||
|
|
|
@ -793,8 +793,7 @@ def _dav_decode_token(token: str) -> (int, int, str):
|
|||
return token_year, token_month_number, token_post_id
|
||||
|
||||
|
||||
def dav_propfind_response(base_dir: str, nickname: str, domain: str,
|
||||
depth: int, xml_str: str) -> str:
|
||||
def dav_propfind_response(nickname: str, xml_str: str) -> str:
|
||||
"""Returns the response to caldav PROPFIND
|
||||
"""
|
||||
if '<d:propfind' not in xml_str or \
|
||||
|
@ -977,7 +976,7 @@ def _dav_update_recent_etags(etag: str, nickname: str,
|
|||
|
||||
|
||||
def dav_put_response(base_dir: str, nickname: str, domain: str,
|
||||
depth: int, xml_str: str, http_prefix: str,
|
||||
xml_str: str, http_prefix: str,
|
||||
system_language: str,
|
||||
recent_dav_etags: {}) -> str:
|
||||
"""Returns the response to caldav PUT
|
||||
|
@ -1023,7 +1022,7 @@ def dav_put_response(base_dir: str, nickname: str, domain: str,
|
|||
|
||||
|
||||
def dav_report_response(base_dir: str, nickname: str, domain: str,
|
||||
depth: int, xml_str: str,
|
||||
xml_str: str,
|
||||
person_cache: {}, http_prefix: str,
|
||||
curr_etag: str, recent_dav_etags: {},
|
||||
domain_full: str, system_language: str) -> str:
|
||||
|
|
Loading…
Reference in New Issue