Commit Graph

29 Commits

Author SHA1 Message Date
Victor Shnayder
8a1e275c8d bugfix: lcp score can apparently be 0/0 2012-06-21 11:05:31 -04:00
Victor Shnayder
3961a5d8ca 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 11:05:31 -04:00
Victor Shnayder
c4b9d339a8 Add scaffolding comments for progress tracking in video modules. 2012-06-21 11:05:31 -04:00
Victor Shnayder
b8c248fd75 minor edits to address Calen's comments. 2012-06-21 11:05:31 -04:00
Victor Shnayder
b5368f2a4f 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 11:05:30 -04:00
Victor Shnayder
6dc481516c Add Progress class and tests 2012-06-21 11:05:30 -04:00
Calen Pennington
b0b728c711 Cleanup intertwined descriptor and keystore code 2012-06-21 11:05:28 -04:00
Piotr Mitros
0a7542c281 Courseware can have same random seed in multiple problems for exam. Slight hack. 2012-06-21 11:05:26 -04:00
Calen Pennington
896c7daf36 Add categories and XModuleDescriptors for all module types that are used at the top level of a course 2012-06-21 11:05:26 -04:00
Calen Pennington
8baf8c81b2 Read week headings from mongodb 2012-06-21 11:05:26 -04:00
Victor Shnayder
51b4d1ff6e added TODO comment 2012-06-21 11:05:23 -04:00
ichuang
cc6c773d99 remove loncapa import in formularesponse_with_hint test (jenkins
import path not consistent with dev machines?)
2012-06-21 11:05:21 -04:00
ichuang
cd9e4672d1 added stringresponse_with_hint test 2012-06-21 11:05:20 -04:00
ichuang
fe94985fd5 add FormulaResponseWithHintTest test 2012-06-21 11:05:20 -04:00
ichuang
37a554975e SymbolicResponseTest works if snuggletex war running ; back to skipping it for now 2012-06-21 11:05:20 -04:00
ichuang
734ee6d8fe fix i4xs in tests.py; move symbolicresponse.xml test back to where it should be 2012-06-21 11:05:20 -04:00
ichuang
d51604c780 fix xmodule/capa tests to use new CorrectMap 2012-06-21 11:05:20 -04:00
ichuang
9891ef3f04 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 11:05:19 -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
6a13d3bba8 Documenting customtag format, and making it less brittle 2012-06-07 11:04:39 -04:00
Calen Pennington
a83fdc71f9 Document the aggregate_scores function 2012-06-07 10:46:10 -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