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

Method message

web/pgadmin/tools/backup/__init__.py:161–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159
160 @property
161 def message(self):
162 server_name = self.get_server_name()
163
164 if self.backup_type == BACKUP.OBJECT:
165 return gettext(
166 "Backing up an object on the server '{0}' "
167 "from database '{1}'"
168 ).format(server_name, self.database)
169 if self.backup_type == BACKUP.GLOBALS:
170 return gettext("Backing up the global objects on "
171 "the server '{0}'").format(
172 server_name
173 )
174 elif self.backup_type == BACKUP.SERVER:
175 return gettext("Backing up the server '{0}'").format(
176 server_name
177 )
178 else:
179 # It should never reach here.
180 return "Unknown Backup"
181
182 def details(self, cmd, args):
183 self.arg_list = args

Callers

nothing calls this directly

Calls 2

get_server_nameMethod · 0.95
gettextFunction · 0.85

Tested by

no test coverage detected