From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | pgAdmin 4 commit: Update "parse_priv_to_db" function to return list a i |
Date: | 2016-03-09 17:10:45 |
Message-ID: | E1adhdF-0002WZ-5o@gothos.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Update "parse_priv_to_db" function to return list a instead of a string.
This will also allow us to operate on individual privileges & also we
needed this functionality for column nodes.
For example,
*Earlier:* priv was string
GRANT {{ priv }} ON {{ type }} TO {{ conn|qtIdent(role) }};
*Now:* priv will be List, which we need to handle in jinja templates.
GRANT *{{ priv|join(', ') }}* ON {{ type }} TO {{ conn|qtIdent(role) }};
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=8a7ec6b45221f042bc39c9bce2c577e12b43cc3a
Author: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
Modified Files
--------------
.../templates/macros/default_privilege.macros | 20 ++++++++++----------
.../servers/templates/macros/privilege.macros | 10 +++++-----
web/pgadmin/browser/server_groups/servers/utils.py | 12 ++++++------
3 files changed, 21 insertions(+), 21 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2016-03-09 17:12:28 | Re: PATCH: Updated ACL parsing function. [pgAdmin4] |
Previous Message | Dave Page | 2016-03-09 16:03:12 | pgAdmin 4 commit: Improve display of error messages on dialogues. |