pgadmin4/web/pgadmin/browser/server_groups/servers/gpdb.py
Chethana Kumar 23a00f9614 Replacing existing browser tree node png icons with the svg icons. Made
it compatible with the pgAdmin 4 color combination.

TODO::
Icons for the following nodes are in PNG format.
- Domain Constraint (Only the invalid icon)
- pgAgent Job Steps
- Green Plum database server
- Server (Only server.png, which is used in the create/edit dialog)
2017-09-11 11:17:31 +05:30

32 lines
863 B
Python

##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, 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 GPDB(ServerType):
UTILITY_PATH_LABEL = gettext("Greenplum Database Binary Path")
UTILITY_PATH_HELP = gettext(
"Path to the directory containing the Greenplum Database utility"
" programs (pg_dump, pg_restore etc)."
)
@property
def icon(self):
return "gpdb.png"
def instanceOf(self, ver):
return "Greenplum Database" in ver
# Default Server Type
GPDB('gpdb', gettext("Greenplum Database"), 3)