public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ashesh Vashi <[email protected]>
To: [email protected]
Subject: pgAdmin 4 commit: Added new url rules for each node by change NodeView
Date: Mon, 23 Nov 2015 08:30:35 +0000
Message-ID: <[email protected]> (raw)
List-Unsubscribe:  <mailto:[email protected]?body=unsub%20pgadmin-hackers>

Added new url rules for each node by change NodeView class:
- Renamed the URL 'nodes' to 'children', because - we'll return the
  children for the current node.
- Using the URL 'nodes' to fetch all nodes of its type, when not
  specified the node-id, otherwise regenerate that node info using the
  node-id (it will be used by the refresh function).

- Added the URL 'msql' for fetching modified SQL for the modified
  objects.
- Separated the URL 'deps' (GET/POST methods) to 'dependency' and
  'dependent', because - it will be used to fetch the properties of the
  object, not manipulate it. (as suggested by Dave).

This commit includes the changes related to it in the specific nodes.
(i.e. server-group, and server).

Also, includes a javascript change to ask the user (if they really want
to leave the page, and it is not an accidental navigation by keyboard
shortcuts).

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=6d46dfbfba21c0e15a2f81d3f349db56dff9b...

Modified Files
--------------
web/pgadmin/browser/collection.py                  |   34 -------
web/pgadmin/browser/server_groups/__init__.py      |   39 +++++++-
.../browser/server_groups/servers/__init__.py      |  100 ++++++++++++++++++--
.../browser/templates/browser/js/browser.js        |   16 +++-
.../browser/templates/browser/js/collection.js     |    2 +-
web/pgadmin/browser/templates/browser/js/node.js   |    5 +-
web/pgadmin/browser/utils.py                       |   50 +++++-----
7 files changed, 174 insertions(+), 72 deletions(-)


-- 
Sent via pgadmin-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pgAdmin 4 commit: Added new url rules for each node by change NodeView
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox