From 03c52eedf278a1b1626265215c1c9fa7e7b0fd24 Mon Sep 17 00:00:00 2001
From: "DASTUD\\sup-imcovangent" <i.vangent@tudelft.nl>
Date: Thu, 7 Jun 2018 17:37:57 +0200
Subject: [PATCH] Small update and test of VISTOMS interface.

Former-commit-id: 21d26bb4462d6683c7e5b16e1ce7386c93429fd9
---
 kadmos/vistoms/interface_vistoms.py | 4 ++--
 kadmos/vistoms/templates/index.html | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/kadmos/vistoms/interface_vistoms.py b/kadmos/vistoms/interface_vistoms.py
index 1c8350156..4a87b50a0 100644
--- a/kadmos/vistoms/interface_vistoms.py
+++ b/kadmos/vistoms/interface_vistoms.py
@@ -77,8 +77,8 @@ def interface(debug=True, tempdir=None):
             # TODO: add option to add entire database in all_graph
 
             # Start the vistoms with all_graphs
-            vistoms_start(all_graphs, file_dir='examples/' + example + '/VISTOMS_interactive', open_vistoms=False)
-        return
+            UPLOAD_FOLDER = 'examples/' + example + '/VISTOMS_interactive'
+            return render_template('VISTOMS.html', new=0, error=error, message=message)
 
     # Info
     @app.route('/info')
diff --git a/kadmos/vistoms/templates/index.html b/kadmos/vistoms/templates/index.html
index 40f3790b7..8142b1397 100644
--- a/kadmos/vistoms/templates/index.html
+++ b/kadmos/vistoms/templates/index.html
@@ -18,7 +18,7 @@
                 <h3 class="panel-title">Sellar Problem</h3>
             </div>
             <div class="panel-body blue list group">
-                <a href="/examples/sellar_problem/KDMS/RCG.kdms" id="b2" class="list-group-item"
+                <a href="/examples/sellar_problem/KDMS" id="b2" class="list-group-item"
                    onclick="confirm();button('b2');undo('b1', 'b3', 'b4')">
                     Sellar Problem database
                 </a>
@@ -31,7 +31,7 @@
                 <h3 class="panel-title">TU Delft wing design</h3>
             </div>
             <div class="panel-body blue list group">
-                <a href="/examples/tu_delft_wing_design/KDMS/RCG.kdms" id="b3" class="list-group-item"
+                <a href="/examples/tu_delft_wing_design/KDMS" id="b3" class="list-group-item"
                    onclick="confirm();button('b3');undo('b1', 'b2', 'b4')">
                     TU Delft wing design database
                 </a>
@@ -44,7 +44,7 @@
                 <h3 class="panel-title">Super-sonic business jet</h3>
             </div>
             <div class="panel-body blue list group">
-                <a href="/examples/ssbj/KDMS/RCG.kdms" id="b4" class="list-group-item"
+                <a href="/examples/ssbj/KDMS" id="b4" class="list-group-item"
                    onclick="confirm();button('b4');undo('b1', 'b2', 'b3')">
                     SSBJ database
                 </a>
-- 
GitLab