Commit Graph

16 Commits

Author SHA1 Message Date
Victor Shnayder
cf2c5cba4f bugfix: lcp score can apparently be 0/0 2012-06-21 10:59:48 -04:00
Victor Shnayder
a47459512d Progress tracking cleanup.
* use clearer names for the two status strings passed to js
* add functions to do canonical conversion of progress to js string
* fix updating bug in sequence.coffee
* add some todo comments and other docs to make future expansion easier
2012-06-21 10:59:48 -04:00
Victor Shnayder
cc8ebf3b08 minor edits to address Calen's comments. 2012-06-21 10:59:47 -04:00
Victor Shnayder
04dd8ee6d1 Initial progress display.
* add module_from_xml param to I4xSystem
* use it to implement xmodule.get_children()
* fix a few comments here and there
* Render-time progress display for seq and vertical modules.
  - Computes fraction of subproblems done.
* Pass problem state back to js during ajax calls.
* general cleanup in capa_module.py
* add progress_changed and progress fields to json returned from each ajax handler

* Coffeescript changes to hook up sequence tracking of problem progress

* net result: sequence 'a' tags now have a progress class
* properly set css class on initial load
* fire event when progress changes after ajax calls
* also save state in 'progress' property of problems-wrapper tag
* event handler finds those tags, computes updated progress
2012-06-21 10:59:47 -04:00
Piotr Mitros
8516d631dc Courseware can have same random seed in multiple problems for exam. Slight hack. 2012-06-21 10:59:43 -04:00
Victor Shnayder
807256f05f added TODO comment 2012-06-21 10:59:40 -04:00
ichuang
57c1aa7b3d third pass in capa cleanup: correct_map -> CorrectMap
- added correctmap.py with CorrectMap class
  - messages subsumed into CorrectMap
  - response get_score called with old CorrectMap so hints based on history are possible
2012-06-21 10:59:36 -04:00
Calen Pennington
80eb769d0c Pull StudentInputError from the module it's actually defined in 2012-06-07 16:43:59 -04:00
Calen Pennington
3f32e5bb3c Fix minor issue with an incomplete carry through of a name change 2012-06-07 16:36:39 -04:00
Calen Pennington
d5e0fb3e69 Renaming item to only_one, and adding documentation 2012-06-07 11:48:23 -04:00
Calen Pennington
5101e575ba Adding documentation for parse_timedelta 2012-06-07 11:46:01 -04:00
Calen Pennington
08220e09f7 Doing some stylistic cleanup on capa_module.py 2012-06-07 11:26:40 -04:00
Calen Pennington
4a0969df9d Move tests for xmodules into the xmodule library, and make them run without django 2012-06-07 10:46:10 -04:00
Calen Pennington
97a9a66c52 Move CAPA problem specific xml parsing utilities out of content_parser into xmodule 2012-06-06 14:15:33 -04:00
Calen Pennington
c76bab6f3e Get rid of unused includes 2012-06-06 14:15:33 -04:00
Calen Pennington
91b306b35a Moving capa and xmodule out of djangoapps/courseware, and removing django references from them 2012-06-06 14:15:32 -04:00