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

Revision 551, 348 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 *
Line 
1#!/usr/bin/python
2# Save parameter to a file
3# Import modules for CGI handling
4import cgi, cgitb, os 
5
6# Create instance of FieldStorage
7form = cgi.FieldStorage() 
8
9# Get data from fields
10outMessage = form.getvalue('msg')
11   
12# write message to file
13text_file = open("dynamicdata/ratings.csv", "w")
14text_file.write(outMessage)
15text_file.close()
16
Note: See TracBrowser for help on using the repository browser.