pgadmin4/web/pgadmin/browser/server_groups/servers/ppas.py
Akshay Joshi d644b4f94e 1) Replace Flask-BabelEx with Flask-Babel. Fixes #6088
2) Upgrade Flask to version 2. Fixes #7010
2021-11-24 17:22:57 +05:30

27 lines
799 B
Python

##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2021, 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):
return "EnterpriseDB" in ver
# Default Server Type
PPAS('ppas', gettext("EDB Advanced Server"), 2)