MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_setting

Function get_setting

web/pgadmin/settings/__init__.py:76–85  ·  view source on GitHub ↗

Retrieve a configuration setting for the current user, or return the default value specified by the caller.

(setting, default='')

Source from the content-addressed store, hash-verified

74
75
76def get_setting(setting, default=''):
77 """Retrieve a configuration setting for the current user, or return the
78 default value specified by the caller."""
79 data = Setting.query.filter_by(
80 user_id=current_user.id, setting=setting).first()
81
82 if not data or data.value is None:
83 return default
84 else:
85 return data.value
86
87
88def get_workspace_layout():

Callers 9

direct_newFunction · 0.90
panelFunction · 0.90
upgrade_checkFunction · 0.90
get_layoutFunction · 0.85
save_browser_tree_stateFunction · 0.85
get_browser_tree_stateFunction · 0.85
object_explorer_filterFunction · 0.85

Calls 1

firstMethod · 0.65

Tested by

no test coverage detected