public inbox for [email protected]
help / color / mirror / Atom feed[pgAdmin4][Patch]: Fixed the TypeError into session.py
2+ messages / 2 participants
[nested] [flat]
* [pgAdmin4][Patch]: Fixed the TypeError into session.py
@ 2016-04-26 10:33 Khushboo Vashi <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Khushboo Vashi @ 2016-04-26 10:33 UTC (permalink / raw)
To: pgadmin-hackers
Hi,
Fixed an issue related to Type ( TypeError: 'str' does not support the
buffer interface)
for python3 in the session.py.
Please find attachment for the same.
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] pgAdmin4_session.patch (532B, 3-pgAdmin4_session.patch)
download | inline diff:
diff --git a/web/pgadmin/utils/session.py b/web/pgadmin/utils/session.py
index 6675e88..f4daefb 100644
--- a/web/pgadmin/utils/session.py
+++ b/web/pgadmin/utils/session.py
@@ -101,7 +101,7 @@ class SqliteSessionStorage(MutableMapping, SessionMixin):
"""
with self._get_conn() as conn:
for row in conn.execute(self._ite_sql):
- yield loads(str(row[0]))
+ yield loads(dumps(row[0]))
def __len__(self):
"""Returns the number of keys stored in this session.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [pgAdmin4][Patch]: Fixed the TypeError into session.py
@ 2016-04-26 10:46 Ashesh Vashi <[email protected]>
parent: Khushboo Vashi <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Ashesh Vashi @ 2016-04-26 10:46 UTC (permalink / raw)
To: Khushboo Vashi <[email protected]>; +Cc: pgadmin-hackers
Thanks - committed!
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company
<http://www.enterprisedb.com;
*http://www.linkedin.com/in/asheshvashi*
<http://www.linkedin.com/in/asheshvashi;
On Tue, Apr 26, 2016 at 4:03 PM, Khushboo Vashi <
[email protected]> wrote:
> Hi,
>
> Fixed an issue related to Type ( TypeError: 'str' does not support the
> buffer interface)
> for python3 in the session.py.
>
> Please find attachment for the same.
>
> Thanks,
> Khushboo
>
>
> --
> 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-04-26 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-26 10:33 [pgAdmin4][Patch]: Fixed the TypeError into session.py Khushboo Vashi <[email protected]>
2016-04-26 10:46 ` Ashesh Vashi <[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