Skip to content
Snippets Groups Projects
Commit 338585c7 authored by Gerben Stouten's avatar Gerben Stouten
Browse files

Sorry batchCheck.html and with file handler

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/branches/lrg@65 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
parent 3dcfdb96
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,10 @@ class Scheduler() :
filename = "%s/Results_%s.txt" % (self.__config.resultsDir, i)
#TODO: If path not exists create file with correct header
with open(filename, "a") as handle:
handle.write(outputline)
handle = open(filname, 'a')
handle.write(outputline)
handle.close()
#_processNameBatch
def _processSyntaxCheck(self, results, i):
......@@ -214,9 +216,9 @@ class Scheduler() :
#FIXME!: This will not work, because Popen doesn't detach from the
# parent, so on return, the process is interrupted. BAD!
# Use multiprocessing, check if PID catch still works
#time.sleep(1)
#subprocess.Popen([self.__config.processName, "src/BatchChecker.py"],
# executable = "python")
subprocess.Popen([self.__config.processName, "src/BatchChecker.py"],
executable = "python")
time.sleep(1)
#addJob
#Scheduler
......
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv = "Content-type" content = "text/html; charset=UTF-8">
<title tal:content = "structure string:Mutalyzer ${version}"></title>
</head>
<body>
<!--
<div metal:use-macro = "sitemacros/macros/menu"></div>
-->
<div metal:define-macro="content">
<center>
<big tal:content = "structure string:Mutalyzer ${version} Batch Name
Checker.">
</big>
</center>
<div id="help">
<!-- <input type="button" value="help"> jQuery Toggle -->
<p>Please upload your batch file in any of the following formats
<ul>
<li>Plain text file</li>
<li>Microsoft Excel XML file</li>
<li>OpenOffice .odt file</li>
</ul>
Each row of the file should contain a mutation name
</p>
Example: AB026906.1:c.274G&gt;T<br /><br />
</div> <!-- help -->
<div tal:condition = "errors" id="errors">
<b>Errors:</b><br />
<div tal:repeat = "i errors"
tal:replace = "structure string:${i}<br>">
</div>
</div>
<table id="inputform">
<form action = "" method = "post" enctype = "multipart/form-data">
<tr>
<td><b>Email</b></td>
<td><input type = "text"
name = "batchNameCheckEmail"
tal:attributes = "value lastpost"
style = "width:200px"></td>
</tr>
<tr>
<td><b>File</b></td>
<td><input type = "file"
name = "batchNameCheckFile"
style = "width:200px"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Submit"></td>
</tr>
</form>
</table> <!-- inputform -->
<div tal:condition = "messages">
<b>System output</b><br>
<pre><div tal:repeat = "i messages"
tal:replace = "structure string:${i}<br>">
</div></pre>
<br />
</div>
<div tal:condition = "debug">
<b>Debug output:</b><br>
<pre><div tal:repeat = "i debug"
tal:replace = "structure string:${i}<br>">
</div></pre>
</div>
</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment