pgAdmin 4 commit: Update "parse_priv_to_db" function to return list a i

Поиск
Список
Период
Сортировка
От Dave Page
Тема pgAdmin 4 commit: Update "parse_priv_to_db" function to return list a i
Дата
Msg-id E1adhdF-0002WZ-5o@gothos.postgresql.org
обсуждение исходный текст
Список 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.zabuawala@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(-)


В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: pgAdmin 4 commit: Improve display of error messages on dialogues.
Следующее
От: Dave Page
Дата:
Сообщение: Re: PATCH: Updated ACL parsing function. [pgAdmin4]