PATCH: Updated ACL parsing function. [pgAdmin4]

From: Murtuza Zabuawala <murtuza(dot)zabuawala(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: PATCH: Updated ACL parsing function. [pgAdmin4]
Date: 2016-03-08 13:51:02
Message-ID: CAKKotZQjp3UPJK56DfpreXyS79Pf5DPzTY4uwWDe4BopiJsQVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi All,

I have updated "parse_priv_to_db" function to return list instead of string.
I have also updated the common macro template under servers node.
(Please review & verify respective nodes ACL functionality though)

This will also allow us to operate on individual privileges & also we
needed this functionality for column node.

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) }};

--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment Content-Type Size
updated_parse_priv_function_templates.patch application/octet-stream 4.3 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Murtuza Zabuawala 2016-03-08 14:02:11 PATCH: Updated acl parsing on tablespace node [pgAdmin4]
Previous Message Surinder Kumar 2016-03-08 13:48:59 Re: [pgAdmin4] [Patch]: Grant Wizard