Commit Graph

66833 Commits

Author SHA1 Message Date
ichuang
bc881e73d9 add MITX_FEATURES['DISPLAY_HISTOGRAMS_TO_STAFF'] flag to settings 2012-06-21 11:05:21 -04:00
ichuang
bf5e0402ec capa_problem and responsetypes pep8 and pyflakes 2012-06-21 11:05:21 -04:00
ichuang
25860ca1fb fix capa_problems pep8 2012-06-21 11:05:21 -04:00
ichuang
cd9e4672d1 added stringresponse_with_hint test 2012-06-21 11:05:20 -04:00
ichuang
ea22aa8670 added StringResponse (with hints)
for hints, still to be done: numericalhint, optionhint
no default hint processing done yet (ie hintmode = on_request)
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
c5d0610da7 fixes to schematicresponse to work with new CorrectMap 2012-06-21 11:05:20 -04:00
ichuang
cd5a4314e2 django pipeline working now (with new pip -e git+git...) 2012-06-21 11:05:20 -04:00
ichuang
21e2ebee8b problem.coffee change: show answer -> also show solution_* & do mathjax typeset 2012-06-21 11:05:19 -04:00
ichuang
2e97d8f675 bugfixes - correctmap should reinit self.cmap on init 2012-06-21 11:05:19 -04:00
ichuang
743e79453a fourth pass in capa cleanup:
- Added hints + hintmethod
  - hintgroup compatible with loncapa spec
  - also does hintfn for custom hints (can do answer history)
  - GenericResponse -> LoncapaResponse
  - moved response type tags into responsetype classes
  - capa_problem should use __future__ division
  - hints stored in CorrectMap, copied to 'feedback' in SimpleInput for display
2012-06-21 11:05:19 -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
ichuang
8129f78611 second pass in capa cleanup:
- each response can now render its own xhtml
  - cleaned up LoncapaProblem.extract_html
2012-06-21 11:05:19 -04:00
ichuang
19f915aff1 responsetypes - fix comment 2012-06-21 11:05:19 -04:00
ichuang
b8408a1529 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 11:05:19 -04:00
ichuang
7766664f2f add msg to textinput_dynamath 2012-06-21 11:05:19 -04:00
Calen Pennington
9089596fad Allow login in the cms, and read a particular course from mongo 2012-06-21 11:05:19 -04:00
Calen Pennington
5ff05f7a95 Get the cms up to the point of rendering a template 2012-06-21 11:05:19 -04:00
Calen Pennington
e845221f4a Make mitxmako available to both the lms and the cms 2012-06-21 11:05:19 -04:00
Matthew Mongeau
3606ddbfdb Got basic login working 2012-06-21 11:05:18 -04:00
Matthew Mongeau
11e19d1260 wip 2012-06-21 11:05:18 -04:00
Matthew Mongeau
dc5cf5f319 Point login form to login. 2012-06-21 11:05:18 -04:00
Matthew Mongeau
d757054460 Modal wip 2012-06-21 11:05:18 -04:00
Matthew Mongeau
6297e1df23 wip modal 2012-06-21 11:05:18 -04:00
Matthew Mongeau
7b4389d173 Redirect to /courses instead of /info 2012-06-21 11:02:50 -04:00
David Ormsbee
e4a6ccc5b2 add courses to front page 2012-06-21 10:59:48 -04:00
David Ormsbee
3f1c2e2aba add corresponding view to new courseware url route :-P 2012-06-21 10:59:48 -04:00
David Ormsbee
fe4b0aed5e add url route to new courseware 2012-06-21 10:59:48 -04:00
David Ormsbee
bc8c077379 Add info page support with multiple courses 2012-06-21 10:59:48 -04:00
David Ormsbee
3859c2be19 Add scanning of data directory for courses.
These are then displayed at /courses.
2012-06-21 10:59:48 -04:00
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
5a99ef5ac0 Initial UI for sequence progress.
* change bottom border of links:
  red for not started
  yellow for in_progress
  green for done

* This should probably be designed at some point.
* Obvious problems: the yellow is not very visible, and lots of people are
  red/green color-blind.
2012-06-21 10:59:48 -04:00
Victor Shnayder
13f24f4b02 Add scaffolding comments for progress tracking in video modules. 2012-06-21 10:59:47 -04:00
Calen Pennington
279332e217 Fix other references to jquery after update to latest version 2012-06-21 10:59:47 -04:00
Victor Shnayder
91befca89c Fix render of lms index with no chapter or section. 2012-06-21 10:59:47 -04:00
Victor Shnayder
cc8ebf3b08 minor edits to address Calen's comments. 2012-06-21 10:59:47 -04:00
Calen Pennington
8a48aaac03 Add note about optional revision in location 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
Victor Shnayder
fd48e49ae5 Add Progress class and tests 2012-06-21 10:59:47 -04:00
Victor Shnayder
e6250f8114 remove obsolete comment 2012-06-21 10:59:47 -04:00
Victor Shnayder
762132b18c Fix accordion rendering bug
* needed to clean the chapter and section vars before rendering
2012-06-21 10:59:46 -04:00
Prem Sichanugrist
1870160f37 Update jQuery and jQuery-UI to latest version 2012-06-21 10:59:46 -04:00
Calen Pennington
18b2a9dfe9 Rename test directory for consistancy 2012-06-21 10:59:46 -04:00
Calen Pennington
b0e94a5fd3 Remove old pre-compiled css 2012-06-21 10:59:46 -04:00
Calen Pennington
4cb285f1f9 Switch the cms over to using django-pipeline 2012-06-21 10:59:46 -04:00
Calen Pennington
4ddf48e1b2 Add comment about None in Locations 2012-06-21 10:59:46 -04:00