Commit Graph

7 Commits

Author SHA1 Message Date
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
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
Calen Pennington
b0b728c711 Cleanup intertwined descriptor and keystore code 2012-06-21 11:05:28 -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
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
91b306b35a Moving capa and xmodule out of djangoapps/courseware, and removing django references from them 2012-06-06 14:15:32 -04:00