mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-09 23:15:58 -06:00
1) Use the "RegExp.exec()" method instead. 2) Remove parameter form or provide default value. 3) Extract this nested ternary operation into an independent statement. 4) Replace this character class by the character itself. 5) Unnecessary use of conditional expression for default assignment. 6) Prefer using an optional chain expression instead, as it's more concise and easier to read.
27 lines
804 B
Python
27 lines
804 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
from flask_babel import gettext
|
|
from pgadmin.browser.server_groups.servers.types import ServerType
|
|
|
|
|
|
class PPAS(ServerType):
|
|
UTILITY_PATH_LABEL = gettext("EDB Advanced Server Binary Path")
|
|
UTILITY_PATH_HELP = gettext(
|
|
"Path to the directory containing the EDB Advanced Server utility"
|
|
" programs (pg_dump, pg_restore etc)."
|
|
)
|
|
|
|
def instance_of(self, ver=None):
|
|
return "EnterpriseDB" in ver
|
|
|
|
|
|
# Default Server Type
|
|
PPAS('ppas', gettext("EDB Advanced Server"), 2)
|