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.zabuaw...@enterprisedb.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(-) -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers