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

Method register_preferences

web/pgadmin/help/__init__.py:53–70  ·  view source on GitHub ↗

register_preferences Register preferences for this module.

(self)

Source from the content-addressed store, hash-verified

51 url='https://www.postgresql.org/')]}
52
53 def register_preferences(self):
54 """
55 register_preferences
56 Register preferences for this module.
57 """
58 # Register options for the PG and PPAS help paths
59 self.help_preference = Preferences('paths', gettext('Paths'))
60
61 self.pg_help_path = self.help_preference.register(
62 'help', 'pg_help_path',
63 gettext("PostgreSQL Help Path"), 'text',
64 'https://www.postgresql.org/docs/$VERSION$/',
65 category_label=gettext('Help'),
66 help_str=gettext(
67 'Path to the PostgreSQL documentation. $VERSION$ will be '
68 'replaced with the major.minor version number.'
69 )
70 )
71
72 def get_exposed_url_endpoints(self):
73 """

Callers

nothing calls this directly

Calls 3

PreferencesClass · 0.90
gettextFunction · 0.85
registerMethod · 0.45

Tested by

no test coverage detected