register_preferences Register preferences for this module.
(self)
| 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 | """ |
nothing calls this directly
no test coverage detected