From bbf037f005001531728c5957ece1b86d43011ada Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Mon, 22 Feb 2016 14:01:13 +0530 Subject: [PATCH] Resolved a typo in Server Module related to assigning manager object to driver variable. --- web/pgadmin/browser/server_groups/servers/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/__init__.py b/web/pgadmin/browser/server_groups/servers/__init__.py index 221208189..4ca738758 100644 --- a/web/pgadmin/browser/server_groups/servers/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/__init__.py @@ -8,7 +8,7 @@ ########################################################################## import json -from abc import ABCMeta, abstractmethod, abstractproperty +from abc import ABCMeta, abstractproperty from flask import render_template, request, make_response, jsonify, \ current_app, url_for from flask.ext.security import login_required, current_user @@ -21,7 +21,7 @@ from pgadmin.browser.utils import PGChildNodeView import traceback from flask.ext.babel import gettext import pgadmin.browser.server_groups as sg -from pgadmin.utils.crypto import encrypt, decrypt +from pgadmin.utils.crypto import encrypt from pgadmin.browser import BrowserPluginModule from config import PG_DEFAULT_DRIVER import six @@ -230,8 +230,7 @@ class ServerNode(PGChildNodeView): ) from pgadmin.utils.driver import get_driver - driver = get_driver(PG_DEFAULT_DRIVER).connection_manager(server.id) - + manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(server.id) conn = manager.connection() connected = conn.connected() @@ -325,7 +324,6 @@ class ServerNode(PGChildNodeView): from pgadmin.utils.driver import get_driver manager = get_driver(PG_DEFAULT_DRIVER).connection_manager(sid) conn = manager.connection() - not_allowed = {} if conn.connected(): for arg in (