Adding the Login/Group Role Node.
Also - includes:
* Added 'parent_id' in the 'generate_browser_node' function of the Nodes
to allow them to move around the parents objects (specially through
update/save functionality).
* Handles the issue related to adding the older object back to the
collection (DataModel).
Author: Ashesh Vashi
Reviewed by: Neel Patel, and Akshay Joshi.
Branch
------
master
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=91c0388a4775b6f38a0e2fd071b0099049395e46
Modified Files
--------------
web/pgadmin/browser/__init__.py | 3 +-
web/pgadmin/browser/collection.py | 10 +-
web/pgadmin/browser/server_groups/__init__.py | 6 +-
.../browser/server_groups/servers/__init__.py | 5 +-
.../server_groups/servers/roles/__init__.py | 908 +++++++++++++++++++++
.../servers/roles/static/img/coll-role.png | Bin 0 -> 472 bytes
.../servers/roles/static/img/group.png | Bin 0 -> 804 bytes
.../servers/roles/static/img/role.png | Bin 0 -> 557 bytes
.../servers/roles/templates/role/css/role.css | 27 +
.../servers/roles/templates/role/js/role.js | 512 ++++++++++++
.../roles/templates/role/sql/post8_4/create.sql | 49 ++
.../roles/templates/role/sql/post8_4/nodes.sql | 8 +
.../templates/role/sql/post8_4/permission.sql | 5 +
.../templates/role/sql/post8_4/properties.sql | 16 +
.../roles/templates/role/sql/post8_4/sql.sql | 98 +++
.../roles/templates/role/sql/post8_4/update.sql | 110 +++
.../roles/templates/role/sql/post8_4/variables.sql | 25 +
.../roles/templates/role/sql/post9_0/create.sql | 45 +
.../roles/templates/role/sql/post9_0/nodes.sql | 8 +
.../templates/role/sql/post9_0/permission.sql | 5 +
.../templates/role/sql/post9_0/properties.sql | 16 +
.../roles/templates/role/sql/post9_0/sql.sql | 98 +++
.../roles/templates/role/sql/post9_0/update.sql | 106 +++
.../roles/templates/role/sql/post9_0/variables.sql | 25 +
.../roles/templates/role/sql/post9_1/create.sql | 54 ++
.../roles/templates/role/sql/post9_1/nodes.sql | 8 +
.../templates/role/sql/post9_1/permission.sql | 5 +
.../templates/role/sql/post9_1/properties.sql | 17 +
.../roles/templates/role/sql/post9_1/sql.sql | 119 +++
.../roles/templates/role/sql/post9_1/update.sql | 132 +++
.../roles/templates/role/sql/post9_1/variables.sql | 25 +
.../roles/templates/role/sql/post9_4/create.sql | 51 ++
.../roles/templates/role/sql/post9_4/nodes.sql | 8 +
.../templates/role/sql/post9_4/permission.sql | 5 +
.../templates/role/sql/post9_4/properties.sql | 17 +
.../roles/templates/role/sql/post9_4/sql.sql | 117 +++
.../roles/templates/role/sql/post9_4/update.sql | 107 +++
.../roles/templates/role/sql/post9_4/variables.sql | 25 +
web/pgadmin/browser/static/js/datamodel.js | 41 +-
39 files changed, 2797 insertions(+), 19 deletions(-)