From 8a29bf4e916d50194e0a12932eb1151f3a89082d Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Mon, 26 Aug 2013 11:49:22 +0200 Subject: [PATCH] Modified Query for list of authorities in Register page, temporary modified filter for Platforms page --- manifold/manifoldapi.py | 2 +- portal/templates/my_account.html | 2 +- portal/views.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 81a2caf6..e6097760 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -62,7 +62,7 @@ class ManifoldAPI: return func def execute_query(request, query): - if not 'manifold' in request.session: + if not 'manifold' in request.session or not 'auth' in request.session['manifold']: print "W: Used hardcoded demo account for execute_query" manifold_api_session_auth = {'AuthMethod': 'password', 'Username': 'demo', 'AuthString': 'demo'} else: diff --git a/portal/templates/my_account.html b/portal/templates/my_account.html index d069cfe4..9b9a2a38 100644 --- a/portal/templates/my_account.html +++ b/portal/templates/my_account.html @@ -18,7 +18,7 @@
-
+
{% csrf_token %} diff --git a/portal/views.py b/portal/views.py index 4df9fc81..c9ae046f 100644 --- a/portal/views.py +++ b/portal/views.py @@ -486,7 +486,8 @@ class PlatformsView(TemplateView): def get_context_data(self, **kwargs): page = Page(self.request) - network_query = Query().get('local:platform').filter_by('disabled', '==', '0').select('platform','platform_longname','gateway_type') + #network_query = Query().get('local:platform').filter_by('disabled', '==', '0').select('platform','platform_longname','gateway_type') + network_query = Query().get('local:platform').select('platform','platform_longname','gateway_type') page.enqueue_query(network_query) page.expose_js_metadata() -- 2.43.0