Warning: Can't use blame annotator:
svn blame failed on trunk/webapps/cgi-bin/saveEvals.py: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/webapps/cgi-bin/saveEvals.py @ 551

Revision 551, 566 bytes checked in by jdalbey, 6 years ago (diff)

Multi-file commit to implement saving evaluation ratings from einotebook to a log file and merging with unified log. Also fix defect #212. cgi-bin/saveEvals.py cgi-bin/saveRatingsToLog.py common/js/displayutils.js common/js/fileutils.js common/js/revision_number.dat common/unifiedlog.css dynamicdata/CADcomments.log dynamicdata/caddetails.csv dynamicdata cms_messages.json dynamicdata/har_messages.json dynamicdata highway_status.json dynamicdata/ratings.csv dynamicdata/unifiedlog.csv dynamicdata/unifiedlog_final.csv einotebook/roles/index.html einotebook roles/roles.js einotebook/script/index.html einotebook/script scrollframe.js einotebook/scripts/Evaluation.js einotebook/scripts/Event.js mergelogs.bash unifiedlogdisplay.html unifiedlogmonitor.html

  • Property svn:executable set to *
RevLine 
1#!/usr/bin/python
2# Import modules for CGI handling
3import cgi, cgitb
4# Create instance of FieldStorage
5form = cgi.FieldStorage()
6# Get data from fields
7output = ""
8for j in range(1, 3):
9    rating =  form.getvalue('evaluationGroup'+str(j))
10    if rating is not None:
11        output +=  form.getvalue('evaluationGroup'+str(j))
12        output += ", "
13
14print "Content-type:text/html\r\n\r\n"
15print "<html>"
16print "<head>"
17print "<title>Response CGI Program</title>"
18print "</head>"
19print "<body>"
20print "<h2>We read %s</h2>" % (output)
21print "</body>"
22print "</html>"
Note: See TracBrowser for help on using the repository browser.