From e9951040003c9b699fa2f028409976a0ec19484a Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 11 Feb 2015 10:00:57 +0000 Subject: [PATCH] Initial cut at saving/retrieving the main browser layout. Still needs some work to: - Minimise AJAX calls by writing multiple settings at once. - Move the settings storage/retrieval JS code into a global file - Avoid using synchronous AJAX calls in the main thread --- .../browser/templates/browser/body.html | 106 +++++++++++++----- web/pgadmin/settings/__init__.py | 37 ++++++ web/{ => pgadmin}/settings/settings_model.py | 4 +- web/pgadmin/settings/views.py | 50 +++++++++ web/pgadmin/templates/base.html | 1 + web/pgadmin/utils/views.py | 1 - web/settings/__init__.py | 79 ------------- web/setup.py | 2 +- 8 files changed, 165 insertions(+), 115 deletions(-) create mode 100644 web/pgadmin/settings/__init__.py rename web/{ => pgadmin}/settings/settings_model.py (92%) create mode 100644 web/pgadmin/settings/views.py delete mode 100644 web/settings/__init__.py diff --git a/web/pgadmin/browser/templates/browser/body.html b/web/pgadmin/browser/templates/browser/body.html index 211b7e1b1..f1bb0a1ba 100644 --- a/web/pgadmin/browser/templates/browser/body.html +++ b/web/pgadmin/browser/templates/browser/body.html @@ -2,12 +2,12 @@
-
+

Browser Pane

-
-
+
+
+