# HG changeset patch # User Nicholas Jillings # Date 1470137179 -3600 # Node ID 221688a8be4f73ce70c24b80a3c279e0a453d8da # Parent 496fde335890ac2691f1c066422945bf8fa22679# Parent d26623bd65e0f9c4e93b849f40a650c891839741 Merge branch 'master' into Dev_main diff -r 496fde335890 -r 221688a8be4f README.md --- a/README.md Thu Jul 07 10:04:35 2016 +0100 +++ b/README.md Tue Aug 02 12:26:19 2016 +0100 @@ -13,7 +13,7 @@ ## Instructions -Please refer to the [Wiki](https://github.com/BrechtDeMan/WebAudioEvaluationTool/wiki) or the documentation in ['docs/Instructions/Instructions.pdf'](https://github.com/BrechtDeMan/WebAudioEvaluationTool/raw/master/docs/Instructions/Instructions.pdf). +Please refer to the [Wiki](https://github.com/BrechtDeMan/WebAudioEvaluationTool/wiki). ### Preview The video below shows you can set up a simple test from scratch in under five minutes (click to open): diff -r 496fde335890 -r 221688a8be4f docs/Instructions/img/mat.JPG Binary file docs/Instructions/img/mat.JPG has changed diff -r 496fde335890 -r 221688a8be4f docs/Instructions/img/pcvsmacvslinux.jpg Binary file docs/Instructions/img/pcvsmacvslinux.jpg has changed diff -r 496fde335890 -r 221688a8be4f media/example/attribution.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media/example/attribution.txt Tue Aug 02 12:26:19 2016 +0100 @@ -0,0 +1,6 @@ +Excerpts from 'countdown.wav' by Freesound user Corsica_S + +URL: https://www.freesound.org/people/Corsica_S/sounds/82986/ + +License: Creative Commons Attribution 3.0 Unported (CC BY 3.0) +License URL: https://creativecommons.org/licenses/by/3.0/ diff -r 496fde335890 -r 221688a8be4f php/comment_parser.php --- a/php/comment_parser.php Thu Jul 07 10:04:35 2016 +0100 +++ b/php/comment_parser.php Tue Aug 02 12:26:19 2016 +0100 @@ -1,5 +1,8 @@ id = $id; diff -r 496fde335890 -r 221688a8be4f php/get_filtered_count.php --- a/php/get_filtered_count.php Thu Jul 07 10:04:35 2016 +0100 +++ b/php/get_filtered_count.php Tue Aug 02 12:26:19 2016 +0100 @@ -1,4 +1,7 @@ id = $id; diff -r 496fde335890 -r 221688a8be4f php/get_tests.php --- a/php/get_tests.php Thu Jul 07 10:04:35 2016 +0100 +++ b/php/get_tests.php Tue Aug 02 12:26:19 2016 +0100 @@ -1,4 +1,7 @@ \ No newline at end of file +?> diff -r 496fde335890 -r 221688a8be4f php/save.php --- a/php/save.php Thu Jul 07 10:04:35 2016 +0100 +++ b/php/save.php Tue Aug 02 12:26:19 2016 +0100 @@ -1,4 +1,7 @@ axis --> element --> value class nestedObject { diff -r 496fde335890 -r 221688a8be4f python/comment_parser.py --- a/python/comment_parser.py Thu Jul 07 10:04:35 2016 +0100 +++ b/python/comment_parser.py Tue Aug 02 12:26:19 2016 +0100 @@ -74,14 +74,17 @@ dialect="excel", quoting=csv.QUOTE_ALL) commentstr = audioelement.find("./comment/response").text + valuestr = audioelement.find("./value").text if commentstr is None: commentstr = '' + if valuestr is None: + valuestr = '' # anonymous comments: #writer.writerow([commentstr]) # .encode("utf-8") # comments with (file) name: - writer.writerow([file[:-4]] + [commentstr]) + writer.writerow([file[:-4]] + [valuestr] + [commentstr.encode("utf-8")]) #TODO Replace 'new line' in comment with something else? diff -r 496fde335890 -r 221688a8be4f python/pythonServer.py --- a/python/pythonServer.py Thu Jul 07 10:04:35 2016 +0100 +++ b/python/pythonServer.py Tue Aug 02 12:26:19 2016 +0100 @@ -28,6 +28,7 @@ PSEUDO_PATH = '../tests/' pseudo_files = [] +pseudo_index = 0 for filename in os.listdir(PSEUDO_PATH): print(filename) if filename.endswith('.xml'): @@ -221,6 +222,7 @@ s.end_headers() def http_do_GET(request): + global pseudo_index if(request.client_address[0] == "127.0.0.1"): if (request.path == "/favicon.ico"): send404(request) @@ -233,7 +235,7 @@ if (request.path == '/'): request.path = '/index.html' elif (request.path == '/pseudo.xml'): - request.path = '/'+PSEUDO_PATH + pseudo_files[pseudo_index] + request.path = PSEUDO_PATH + pseudo_files[pseudo_index] print(request.path) pseudo_index += 1 pseudo_index %= len(pseudo_files)