diff options
author | Tony Anderson <tony@traveler.(none)> | 2011-03-26 16:29:17 (GMT) |
---|---|---|
committer | Tony Anderson <tony@traveler.(none)> | 2011-03-26 16:29:17 (GMT) |
commit | 311b170b59299a77d7cccdd46853a97d98c4fcb2 (patch) | |
tree | a421ddb6d3aab6db350adefcbeaed3be7a7f9505 | |
parent | e013e05986de4f9663fabbc98682dc3f64ae6ecd (diff) |
version 12.13
-rwxr-xr-x | activity/activity.info | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | cgi-bin/say.py | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | cgi-bin/writeQuiz.py | 11 |
3 files changed, 4 insertions, 9 deletions
diff --git a/activity/activity.info b/activity/activity.info index 319c008..f9bbe7c 100755 --- a/activity/activity.info +++ b/activity/activity.info @@ -1,5 +1,5 @@ [Activity] -#version = 12.12 +#version = 12.13 name = Learn service_name = rw.olpc.Learn icon = activity-learn diff --git a/cgi-bin/say.py b/cgi-bin/say.py index d340432..d340432 100644..100755 --- a/cgi-bin/say.py +++ b/cgi-bin/say.py diff --git a/cgi-bin/writeQuiz.py b/cgi-bin/writeQuiz.py index fc0736e..be645bb 100644..100755 --- a/cgi-bin/writeQuiz.py +++ b/cgi-bin/writeQuiz.py @@ -20,14 +20,9 @@ opt = opt + ' title: "Opportunity",}\n' txt = 'var quiz = {\nfill:[\n' + txt + ']\n};\n\n' + opt + '\n' print >> log, 'quiz', txt # write quiz -if activity[:2] == 'en': - subject = 'English11' -else: - subject = 'Mathematics11' -milestone = activity[:9] -tpth = base / subject / milestone / activity / 'js' / 'quiz.js' -print >> log, 'path', tpth -fout = open(tpth,'w') +pth = path(activity) / 'quiz.js' +print >> log, 'path', pth +fout = open(pth,'w') fout.write(txt) fout.close() log.close() |