summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-10-21 16:21:26 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-10-21 16:21:26 +0200
commit755b4890035e2d8bb77088bf24b67bed8ceb057b (patch)
tree63b465919f7b868cefd1971513dd17bd4fe1a8bb
parentInitial import of the server. (diff)
downloadauto-numerical-bench-server.tar.gz
auto-numerical-bench-server.tar.bz2
auto-numerical-bench-server.zip
Added button for getXML; some more logging.server
-rw-r--r--server/Server.py6
-rw-r--r--server/pages/createConf.html2
2 files changed, 7 insertions, 1 deletions
diff --git a/server/Server.py b/server/Server.py
index dc88978..fa34fc3 100644
--- a/server/Server.py
+++ b/server/Server.py
@@ -55,6 +55,9 @@ class MyRequestHandler(SimpleHTTPRequestHandler):
sd = self.Session().d
print 'Session dictionary:', sd
if 'login' not in sd and not self.path.startswith('/login'):
+ print "You must login!"
+ print " * in dict:", 'login' not in sd
+ print " * path:", not self.path.startswith('/login')
sd['requested'] = self.path
self.send_response(301)
@@ -64,11 +67,12 @@ class MyRequestHandler(SimpleHTTPRequestHandler):
self.end_headers()
return False
+ print "Login already done"
return True
def do_GET(self):
- print "Requested path", self.path
+ print "\nRequested path", self.path
if not self.checkLogin():
return
diff --git a/server/pages/createConf.html b/server/pages/createConf.html
index 127ae22..6c1f350 100644
--- a/server/pages/createConf.html
+++ b/server/pages/createConf.html
@@ -41,6 +41,8 @@
<ul id="casesList">
<button id="addCaseButton" onclick="addCase()">Add new case</button>
</ul>
+
+ <button onclick="sendConf()">Get XML</button>
</body>
</html> \ No newline at end of file