public inbox for [email protected]  
help / color / mirror / Atom feed
grant_wizard py3 bug
2+ messages / 2 participants
[nested] [flat]

* grant_wizard py3 bug
@ 2016-04-13 19:10  Seçkin Alan <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Seçkin Alan @ 2016-04-13 19:10 UTC (permalink / raw)
  To: pgadmin-hackers

Hi,
I want the run pgadmin4 on python3, throw unquote module not found.

In python3 unquote method moved root to parse class

https://docs.python.org/3.4/library/urllib.parse.html#urllib.parse.unquote


Maybe isn't clear patch.


-- 
Seçkin ALAN
http://sckn.org


-- 
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] grant_wizard__init__.py3.patch (694B, 2-grant_wizard__init__.py3.patch)
  download | inline diff:
diff --git a/web/pgadmin/tools/grant_wizard/__init__.py b/web/pgadmin/tools/grant_wizard/__init__.py
index f53b979..4002e4e 100644
--- a/web/pgadmin/tools/grant_wizard/__init__.py
+++ b/web/pgadmin/tools/grant_wizard/__init__.py
@@ -20,7 +20,10 @@ from pgadmin.browser.server_groups.servers.utils import parse_priv_to_db
 from pgadmin.utils import PgAdminModule
 from flask import Response, url_for
 from flask.ext.security import login_required
-from urllib import unquote
+try:
+    from urllib import unquote
+except:
+    from urllib.parse import unquote
 from pgadmin.utils.ajax import precondition_required
 from functools import wraps
 from pgadmin.utils.preferences import Preferences



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

* Re: grant_wizard py3 bug
@ 2016-04-14 06:25  Ashesh Vashi <[email protected]>
  parent: Seçkin Alan <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Ashesh Vashi @ 2016-04-14 06:25 UTC (permalink / raw)
  To: Seçkin Alan <[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 Thu, Apr 14, 2016 at 12:40 AM, Seçkin Alan <[email protected]> wrote:

> Hi,
> I want the run pgadmin4 on python3, throw unquote module not found.
>
> In python3 unquote method moved root to parse class
>
> https://docs.python.org/3.4/library/urllib.parse.html#urllib.parse.unquote
>
>
> Maybe isn't clear patch.
>
>
> --
> Seçkin ALAN
> http://sckn.org
>
>
> --
> 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-14 06:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-13 19:10 grant_wizard py3 bug Seçkin Alan <[email protected]>
2016-04-14 06:25 ` 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