MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / preferences

Method preferences

web/pgadmin/utils/preferences.py:488–500  ·  view source on GitHub ↗

preferences Convert all the module preferences in the JSON format. :returns: a list of the preferences for each of the modules.

(cls)

Source from the content-addressed store, hash-verified

486
487 @classmethod
488 def preferences(cls):
489 """
490 preferences
491 Convert all the module preferences in the JSON format.
492
493 :returns: a list of the preferences for each of the modules.
494 """
495 res = []
496
497 for m in Preferences.modules:
498 res.append(Preferences.modules[m].to_json())
499
500 return res
501
502 @classmethod
503 def register_preference(

Callers 3

preferencesFunction · 0.80
preferences_sFunction · 0.80
get_all_cliFunction · 0.80

Calls 2

appendMethod · 0.80
to_jsonMethod · 0.45

Tested by

no test coverage detected