2015-11-19 11:45:48 -06:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2018-01-05 04:42:49 -06:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2015-11-19 11:45:48 -06:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
2016-01-18 08:48:14 -06:00
|
|
|
|
2018-04-04 04:47:01 -05:00
|
|
|
from flask_babelex import gettext
|
2015-11-19 11:45:48 -06:00
|
|
|
from pgadmin.browser.server_groups.servers.types import ServerType
|
|
|
|
|
|
|
|
|
|
|
|
class PPAS(ServerType):
|
2017-04-18 07:33:27 -05:00
|
|
|
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)."
|
|
|
|
)
|
|
|
|
|
2015-11-19 11:45:48 -06:00
|
|
|
def instanceOf(self, ver):
|
|
|
|
return ver.startswith("EnterpriseDB")
|
|
|
|
|
2016-06-21 08:21:06 -05:00
|
|
|
|
2015-11-19 11:45:48 -06:00
|
|
|
# Default Server Type
|
2016-06-17 08:35:16 -05:00
|
|
|
PPAS('ppas', gettext("EDB Advanced Server"), 2)
|