From: Loic Baron <loic.baron@lip6.fr>
Date: Mon, 26 Aug 2013 09:49:22 +0000 (+0200)
Subject: Modified Query for list of authorities in Register page, temporary modified filter... 
X-Git-Tag: myslice-0.2-1~41^2~2
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8a29bf4e916d50194e0a12932eb1151f3a89082d;p=unfold.git

Modified Query for list of authorities in Register page, temporary modified filter for Platforms page
---

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 @@
     </div>
     <div class='ms-dashboard-content' id='tophat__list__user_hrn'>
             <div id="main">
-                    <div id="middle">
+                    <div id="middle" align="center">
                        <form id="editForm"  method="POST" action="acc_process" enctype="multipart/form-data">
 						{% csrf_token %}
                        <table class="profile">          
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()