| 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
*
|
| Rev | Line | |
|---|
| 1 | #!/usr/bin/python |
|---|
| 2 | # Import modules for CGI handling |
|---|
| 3 | import cgi, cgitb |
|---|
| 4 | # Create instance of FieldStorage |
|---|
| 5 | form = cgi.FieldStorage() |
|---|
| 6 | # Get data from fields |
|---|
| 7 | output = "" |
|---|
| 8 | for 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 | |
|---|
| 14 | print "Content-type:text/html\r\n\r\n" |
|---|
| 15 | print "<html>" |
|---|
| 16 | print "<head>" |
|---|
| 17 | print "<title>Response CGI Program</title>" |
|---|
| 18 | print "</head>" |
|---|
| 19 | print "<body>" |
|---|
| 20 | print "<h2>We read %s</h2>" % (output) |
|---|
| 21 | print "</body>" |
|---|
| 22 | print "</html>" |
|---|
Note: See
TracBrowser
for help on using the repository browser.