public inbox for [email protected]
help / color / mirror / Atom feedFrom: Seçkin Alan <[email protected]>
To: [email protected]
Subject: grant_wizard py3 bug
Date: Wed, 13 Apr 2016 22:10:12 +0300
Message-ID: <CAJZJJmoAyp_FsgWzKXD6ZK6z6J3CgL2EyUBLQz69fp14z9sRPQ@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-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
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: grant_wizard py3 bug
In-Reply-To: <CAJZJJmoAyp_FsgWzKXD6ZK6z6J3CgL2EyUBLQz69fp14z9sRPQ@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox