From e52fd0d349ac6123f4517f335a6985c3e88506c8 Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 20 Nov 2015 11:33:50 +0530 Subject: [PATCH] Resolved an issue related Python 3.x compability regarding setting property name was same as variable. --- web/pgadmin/browser/server_groups/servers/types.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/pgadmin/browser/server_groups/servers/types.py b/web/pgadmin/browser/server_groups/servers/types.py index 040e8a465..33905d113 100644 --- a/web/pgadmin/browser/server_groups/servers/types.py +++ b/web/pgadmin/browser/server_groups/servers/types.py @@ -25,8 +25,8 @@ class ServerType: def __init__(self, server_type, description, priority): self.stype = server_type - self.description = description - self.priority = priority + self.desc = description + self.spriority = priority assert(server_type not in ServerType.registry) ServerType.registry[server_type] = self @@ -37,15 +37,15 @@ class ServerType: @property def description(self): - return self.description + return self.desc @property def priority(self): - return self.priority + return self.spriority def __str__(self): return "Type: {0}, Description:{1}, Priority: {2}".format( - self.stype, self.description, self.priority + self.stype, self.desc, self.spriority ) def instanceOf(self, version):