public inbox for [email protected]
help / color / mirror / Atom feedFrom: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch]: RM 1785 - PPAS Servers are consider to be PostgreSQL until after the first disconnect/reconnect
Date: Fri, 7 Oct 2016 16:58:11 +0530
Message-ID: <CAFOhELfaCod3z0r0db4tPKvauyxRS-4sJOXc=c-xfhKwg98otw@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
Hi,
Please find the attached patch to fix the RM 1785: PPAS Servers are
consider to be PostgreSQL until after the first disconnect/reconnect
Issue:
After creating a new server, the icon and the server type were not set
properly in the response, so fixed both in the response.
Thanks,
Khushboo
--
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers
Attachments:
[text/x-patch] RM_1785.patch (1.1K, 3-RM_1785.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/__init__.py b/web/pgadmin/browser/server_groups/servers/__init__.py
index a6fe620..a128f2b 100644
--- a/web/pgadmin/browser/server_groups/servers/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/__init__.py
@@ -623,18 +623,17 @@ class ServerNode(PGChildNodeView):
user = manager.user_info
connected = True
- icon = "icon-pg"
return jsonify(
node=self.blueprint.generate_browser_node(
"%d" % server.id, server.servergroup_id,
server.name,
- icon,
+ 'icon-{0}'.format(manager.server_type) if manager.server_type else "icon-pg",
True,
self.node_type,
user=user,
connected=connected,
- server_type='pg' # Default server type
+ server_type=manager.server_type if manager.server_type else 'pg'
)
)
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [pgAdmin4][Patch]: RM 1785 - PPAS Servers are consider to be PostgreSQL until after the first disconnect/reconnect
In-Reply-To: <CAFOhELfaCod3z0r0db4tPKvauyxRS-4sJOXc=c-xfhKwg98otw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox