PATCH: Updated ACL parsing function. [pgAdmin4] - Mailing list pgadmin-hackers

From Murtuza Zabuawala
Subject PATCH: Updated ACL parsing function. [pgAdmin4]
Date
Msg-id CAKKotZQjp3UPJK56DfpreXyS79Pf5DPzTY4uwWDe4BopiJsQVw@mail.gmail.com
Whole thread Raw
Responses Re: PATCH: Updated ACL parsing function. [pgAdmin4]
List 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

pgadmin-hackers by date:

Previous
From: Surinder Kumar
Date:
Subject: Re: [pgAdmin4] [Patch]: Grant Wizard
Next
From: Murtuza Zabuawala
Date:
Subject: PATCH: Updated acl parsing on tablespace node [pgAdmin4]