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

Method details

web/pgadmin/tools/backup/__init__.py:182–199  ·  view source on GitHub ↗
(self, cmd, args)

Source from the content-addressed store, hash-verified

180 return "Unknown Backup"
181
182 def details(self, cmd, args):
183 self.arg_list = args
184 server_name = self.get_server_name()
185 backup_type = gettext("Backup")
186 if self.backup_type == BACKUP.OBJECT:
187 backup_type = gettext("Backup Object")
188 elif self.backup_type == BACKUP.GLOBALS:
189 backup_type = gettext("Backup Globals")
190 elif self.backup_type == BACKUP.SERVER:
191 backup_type = gettext("Backup Server")
192
193 return {
194 "message": self.message,
195 "cmd": cmd + self.cmd,
196 "server": server_name,
197 "object": self.database,
198 "type": backup_type,
199 }
200
201
202@blueprint.route("/")

Callers 1

runTestMethod · 0.95

Calls 2

get_server_nameMethod · 0.95
gettextFunction · 0.85

Tested by 1

runTestMethod · 0.76