Commit Graph

11 Commits

Author SHA1 Message Date
Victor Shnayder
d7a8679aae put lambda function back in, as requested during code review 2012-06-21 10:59:44 -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
6003fee9f9 Small cleanups in response to Calen + Piotr's comments 2012-06-21 10:59:43 -04:00
Victor Shnayder
b5536d98d7 Clean and refactor courseware/views.py and module_render.py
* Refactor index() so that it makes sense to me and hopefully others :)
* Rename preloaded cache of student modules to student_module_cache
* Fix line length and whitespace throughout
* add docstrings and other comments
* a few behavior-preserving tweaks to the code to make it clearer.
* Separate codepaths for with-module and without-module in index view
* Remove default chapter + section, since they don't exist anyway in course.xml
2012-06-21 10:59:43 -04:00
Victor Shnayder
792443ca80 clarify docstring for modx_dispatch 2012-06-21 10:59:40 -04:00
Victor Shnayder
25ac073fb8 add function docs to module_render.py 2012-06-21 10:59:40 -04:00
ichuang
9edc6bbd43 add MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] flag to settings 2012-06-21 10:59:38 -04:00
ichuang
f1a12a2604 first pass in capa cleanup:
- responsetype used to be instantiated multiple times(!) in capa_problem
     now it is instantiated once, and stored in self.responders
   - responsetypes.GenericResponse restructured; each superclass
     show now provide setup_response (and not __init__), and may
     provide get_max_score(); general __init__ provided to
     clean up superclasses.
2012-06-21 10:59:36 -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
Calen Pennington
5ba03130aa Moving LMS code into subdirectory 2012-06-06 14:09:01 -04:00