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

Method module

web/pgadmin/utils/preferences.py:580–599  ·  view source on GitHub ↗

module (classmethod) Get the module preferences object :param name: Name of the module :param create: Flag to create Preferences object :returns: a Preferences object representing for the module.

(cls, name, create=True)

Source from the content-addressed store, hash-verified

578
579 @classmethod
580 def module(cls, name, create=True):
581 """
582 module (classmethod)
583 Get the module preferences object
584
585 :param name: Name of the module
586 :param create: Flag to create Preferences object
587 :returns: a Preferences object representing for the module.
588 """
589 if name in Preferences.modules:
590 m = Preferences.modules[name]
591 # Update the label (if not defined yet)
592 if m.label is None:
593 m.label = name
594 return m
595
596 if create:
597 return Preferences(name, None)
598
599 return None
600
601 @classmethod
602 def save_cli(cls, mid, cid, pid, user_id, value):

Callers 15

register_languageFunction · 0.80
indexFunction · 0.80
utilsFunction · 0.80
register_preferencesMethod · 0.80
get_all_server_groupsMethod · 0.80
get_preferencesFunction · 0.80
statisticsMethod · 0.80
statisticsMethod · 0.80
register_preferencesMethod · 0.80
register_preferencesMethod · 0.80
register_preferencesMethod · 0.80

Calls 1

PreferencesClass · 0.70

Tested by 2

configure_preferencesFunction · 0.64