Remove default arguments

main
Bob Mottram 2024-02-19 18:31:04 +00:00
parent b33f479a7b
commit 0985d93637
7 changed files with 16 additions and 10 deletions

View File

@ -631,7 +631,7 @@ def html_calendar(person_cache: {}, translate: {},
}
screen_reader_cal = \
html_keyboard_navigation(text_mode_banner, nav_links, nav_access_keys,
month_name)
month_name, None, None, False)
if not only_show_reminders:
show_reminders_link = \

View File

@ -105,7 +105,8 @@ def html_login(translate: {},
copyfile(source_image, login_image_filename)
text_mode_logo = get_text_mode_logo(base_dir)
text_mode_logo_html = html_keyboard_navigation(text_mode_logo, {}, {})
text_mode_logo_html = html_keyboard_navigation(text_mode_logo, {}, {},
None, None, None, False)
set_custom_background(base_dir, 'login-background-custom',
'login-background')

View File

@ -278,7 +278,8 @@ def html_person_options(default_timeline: str,
nav_access_keys = {
}
options_str += \
html_keyboard_navigation(text_mode_banner, nav_links, nav_access_keys)
html_keyboard_navigation(text_mode_banner, nav_links, nav_access_keys,
None, None, None, False)
options_str += '<div class="options">\n'
options_str += ' <div class="optionsAvatar">\n'

View File

@ -332,7 +332,8 @@ def html_podcast_episode(translate: {},
link_url = newswire_item[1]
podcast_str += html_keyboard_navigation(text_mode_banner, {}, {})
podcast_str += html_keyboard_navigation(text_mode_banner, {}, {},
None, None, None, False)
podcast_str += '<br><br>\n'
podcast_str += \
'<div class="options" itemscope ' + \

View File

@ -1371,7 +1371,8 @@ def html_profile(signing_priv_key_pem: str,
nav_access_keys[locals()[variable_name]] = key
profile_str = html_keyboard_navigation(text_mode_banner,
nav_links, nav_access_keys)
nav_links, nav_access_keys,
None, None, None, False)
profile_str += profile_header_str + donate_section
profile_str += '<div class="container" id="buttonheader">\n'
@ -3136,7 +3137,8 @@ def html_edit_profile(server, translate: {},
menu_timeline: 't'
}
edit_profile_form += \
html_keyboard_navigation(text_mode_banner, nav_links, nav_access_keys)
html_keyboard_navigation(text_mode_banner, nav_links, nav_access_keys,
None, None, None, False)
# top banner
edit_profile_form += \

View File

@ -466,7 +466,8 @@ def html_search(translate: {}, base_dir: str, path: str, domain: str,
search_banner_file, search_banner_filename = \
get_search_banner_file(base_dir, search_nickname, domain, theme)
text_mode_banner_str = html_keyboard_navigation(text_mode_banner, {}, {})
text_mode_banner_str = html_keyboard_navigation(text_mode_banner, {}, {},
None, None, None, False)
if text_mode_banner_str is None:
text_mode_banner_str = ''

View File

@ -1759,9 +1759,9 @@ def html_hide_from_screen_reader(html_str: str) -> str:
def html_keyboard_navigation(banner: str, links: {}, access_keys: {},
sub_heading: str = None,
users_path: str = None, translate: {} = None,
follow_approvals: bool = False) -> str:
sub_heading: str,
users_path: str, translate: {},
follow_approvals: bool) -> str:
"""Given a set of links return the html for keyboard navigation
"""
html_str = '<div class="transparent"><ul>\n'