public inbox for [email protected]  
help / color / mirror / Atom feed
PATCH: To fix the issue where user gets error following application server restart (pgAdmin4)
2+ messages / 2 participants
[nested] [flat]

* PATCH: To fix the issue where user gets error following application server restart (pgAdmin4)
@ 2016-09-19 11:48 Murtuza Zabuawala <[email protected]>
  2016-09-19 14:58 ` Re: PATCH: To fix the issue where user gets error following application server restart (pgAdmin4) Dave Page <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Murtuza Zabuawala @ 2016-09-19 11:48 UTC (permalink / raw)
  To: pgadmin-hackers

Hi,

PFA patch to fix the issue where user gets error following application
server restart.
RM#1707

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


Attachments:

  [application/octet-stream] RM_1707.patch (531B, 3-RM_1707.patch)
  download | inline diff:
diff --git a/web/pgadmin/utils/driver/psycopg2/__init__.py b/web/pgadmin/utils/driver/psycopg2/__init__.py
index 95aa95c..1f7773b 100644
--- a/web/pgadmin/utils/driver/psycopg2/__init__.py
+++ b/web/pgadmin/utils/driver/psycopg2/__init__.py
@@ -1735,7 +1735,7 @@ class Driver(BaseDriver):
         for sess in self.managers:
             sess_mgr = self.managers[sess]
 
-            if sess == session['_id']:
+            if sess == session.get('_id'):
                 sess_mgr['pinged'] = curr_time
                 continue
 


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PATCH: To fix the issue where user gets error following application server restart (pgAdmin4)
  2016-09-19 11:48 PATCH: To fix the issue where user gets error following application server restart (pgAdmin4) Murtuza Zabuawala <[email protected]>
@ 2016-09-19 14:58 ` Dave Page <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Dave Page @ 2016-09-19 14:58 UTC (permalink / raw)
  To: Murtuza Zabuawala <[email protected]>; +Cc: pgadmin-hackers

Thanks, applied.

On Mon, Sep 19, 2016 at 12:48 PM, Murtuza Zabuawala
<[email protected]> wrote:
> Hi,
>
> PFA patch to fix the issue where user gets error following application
> server restart.
> RM#1707
>
> --
> Regards,
> Murtuza Zabuawala
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
>
> --
> Sent via pgadmin-hackers mailing list ([email protected])
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>



-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-09-19 14:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-09-19 11:48 PATCH: To fix the issue where user gets error following application server restart (pgAdmin4) Murtuza Zabuawala <[email protected]>
2016-09-19 14:58 ` Dave Page <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox