mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
d5459e1fab
commit
952522a9ff
|
@ -3633,7 +3633,10 @@ def daemon_http_get(self) -> None:
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
cookie,
|
cookie,
|
||||||
self.server.theme_name):
|
self.server.theme_name,
|
||||||
|
self.server.access_keys,
|
||||||
|
self.server.key_shortcuts,
|
||||||
|
self.server.default_timeline):
|
||||||
self.server.getreq_busy = False
|
self.server.getreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,9 @@ from httpcodes import http_404
|
||||||
|
|
||||||
def edit_links2(self, calling_domain: str, path: str,
|
def edit_links2(self, calling_domain: str, path: str,
|
||||||
translate: {}, base_dir: str,
|
translate: {}, base_dir: str,
|
||||||
domain: str, cookie: str, theme: str) -> bool:
|
domain: str, cookie: str, theme: str,
|
||||||
|
access_keys: {}, key_shortcuts: {},
|
||||||
|
default_timeline: str) -> bool:
|
||||||
"""Show the links from the left column
|
"""Show the links from the left column
|
||||||
"""
|
"""
|
||||||
if '/users/' in path and path.endswith('/editlinks'):
|
if '/users/' in path and path.endswith('/editlinks'):
|
||||||
|
@ -23,14 +25,13 @@ def edit_links2(self, calling_domain: str, path: str,
|
||||||
if '/' in nickname:
|
if '/' in nickname:
|
||||||
nickname = nickname.split('/')[0]
|
nickname = nickname.split('/')[0]
|
||||||
|
|
||||||
access_keys = self.server.access_keys
|
if key_shortcuts.get(nickname):
|
||||||
if self.server.key_shortcuts.get(nickname):
|
access_keys = key_shortcuts[nickname]
|
||||||
access_keys = self.server.key_shortcuts[nickname]
|
|
||||||
|
|
||||||
msg = html_edit_links(translate,
|
msg = html_edit_links(translate,
|
||||||
base_dir,
|
base_dir,
|
||||||
path, domain,
|
path, domain,
|
||||||
self.server.default_timeline,
|
default_timeline,
|
||||||
theme, access_keys)
|
theme, access_keys)
|
||||||
if msg:
|
if msg:
|
||||||
msg = msg.encode('utf-8')
|
msg = msg.encode('utf-8')
|
||||||
|
|
Loading…
Reference in New Issue