webapp.routes

Routes for pgconfig-ce webapp.

Module Contents

Functions

get_year()

Gets the current year. Used for providing dynamic

view_about()

view_root_url()

view_app_param_not_set()

view_app_params(pg_param)

view_app_param_changes_v2(vers1, vers2)

redirect_param_change()

redirect_custom_with_defaults()

Route supporting removed feature. If users have this route bookmarked,

view_custom_config_comparison(vers1)

Route supporting removed feature. If users have this route bookmarked,

get_param_select_html(→ str)

Returns HTML of parameter options to select from on the "single parameter"

_version_select_html(name, filter_default)

Attributes

LOGGER

webapp.routes.LOGGER[source]
webapp.routes.get_year()[source]

Gets the current year. Used for providing dynamic copyright year in the footer.

Returns:

Current year

Return type:

int

webapp.routes.view_about()[source]
webapp.routes.view_root_url()[source]
webapp.routes.view_app_param_not_set()[source]
webapp.routes.view_app_params(pg_param)[source]
webapp.routes.view_app_param_changes_v2(vers1, vers2)[source]
webapp.routes.redirect_param_change()[source]
webapp.routes.redirect_custom_with_defaults()[source]

Route supporting removed feature. If users have this route bookmarked, don’t just 404 on them. Gives hint at query to run to get the data directly in their database.

webapp.routes.view_custom_config_comparison(vers1)[source]

Route supporting removed feature. If users have this route bookmarked, don’t just 404 on them. Gives hint at query to run to get the data directly in their database.

webapp.routes.get_param_select_html(filter_default: str = 'max_parallel_workers_per_gather') str[source]

Returns HTML of parameter options to select from on the “single parameter” page.

Parameters:

filter_default (str) – Default value: max_parallel_workers_per_gather

Returns:

html

Return type:

str

webapp.routes._version_select_html(name, filter_default)[source]