Commit Graph

5216 Commits

Author SHA1 Message Date
ichuang
f64614b8ce fix correctmap set_dict bug - make __getitem__ call self.cmap.__getitem__ 2012-06-21 10:59:39 -04:00
ichuang
3e2ef6b8dc revert logging instantiation to use 'mitx.' + __name__ 2012-06-21 10:59:39 -04:00
ichuang
0b61199f8f removed unused answer_map parameter from capa_problem.lcp.preprocess_problem 2012-06-21 10:59:39 -04:00
ichuang
d858fc0933 remove loncapa import in formularesponse_with_hint test (jenkins
import path not consistent with dev machines?)
2012-06-21 10:59:38 -04:00
ichuang
39dc5d0446 capa_problem and responsetypes pep8 and pyflakes 2012-06-21 10:59:38 -04:00
ichuang
c1c47bdae1 fix capa_problems pep8 2012-06-21 10:59:38 -04:00
ichuang
ede4ae08b9 added stringresponse_with_hint test 2012-06-21 10:59:38 -04:00
ichuang
6dedf644e1 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 10:59:37 -04:00
ichuang
77d38da927 add FormulaResponseWithHintTest test 2012-06-21 10:59:37 -04:00
ichuang
436794741b SymbolicResponseTest works if snuggletex war running ; back to skipping it for now 2012-06-21 10:59:37 -04:00
ichuang
6f3143528f fix i4xs in tests.py; move symbolicresponse.xml test back to where it should be 2012-06-21 10:59:37 -04:00
ichuang
47e0317b7c fix xmodule/capa tests to use new CorrectMap 2012-06-21 10:59:37 -04:00
ichuang
225a4d87c6 fixes to schematicresponse to work with new CorrectMap 2012-06-21 10:59:37 -04:00
ichuang
d56e6e1a11 django pipeline working now (with new pip -e git+git...) 2012-06-21 10:59:37 -04:00
ichuang
8030bce0c0 bugfixes - correctmap should reinit self.cmap on init 2012-06-21 10:59:37 -04:00
ichuang
70e942fe2b 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 10:59:36 -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
ichuang
a3d24d41f5 second pass in capa cleanup:
- each response can now render its own xhtml
  - cleaned up LoncapaProblem.extract_html
2012-06-21 10:59:36 -04:00
ichuang
ff9f8c9779 responsetypes - fix comment 2012-06-21 10:59:36 -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
ichuang
ec0b451e7f add msg to textinput_dynamath 2012-06-21 10:59:36 -04:00
Calen Pennington
cabcc0c1d9 Allow login in the cms, and read a particular course from mongo 2012-06-21 10:59:36 -04:00
Calen Pennington
338547343e Get the cms up to the point of rendering a template 2012-06-21 10:59:36 -04:00
Calen Pennington
3c07c2b158 Make mitxmako available to both the lms and the cms 2012-06-21 10:59:35 -04:00
ichuang
a2e2b6e445 allow javascript in problem xml 2012-06-20 23:37:40 -04:00
Victor Shnayder
95806847d0 bugfix: lcp score can apparently be 0/0 2012-06-20 17:20:34 -04:00
Victor Shnayder
5e7535fbfb 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-20 16:04:03 -04:00
Victor Shnayder
e5a791e031 Add scaffolding comments for progress tracking in video modules. 2012-06-20 16:04:03 -04:00
Calen Pennington
1b7b7e91e4 Merge branch 'master' into cpennington/cms-editing 2012-06-20 15:07:15 -04:00
Calen Pennington
1853b99861 Work in progress editing. Committing to allow kfiedler to work in parallel 2012-06-20 11:14:25 -04:00
Calen Pennington
e9d5f85745 Merge pull request #115 from MITx/capa-include
modify capa_problem to add <include file="foo"> functionality
2012-06-20 07:34:19 -07:00
Calen Pennington
c317521468 Merge pull request #126 from MITx/victor/progress-tracking
Victor/progress tracking
2012-06-20 07:33:48 -07:00
Victor Shnayder
e872f31835 minor edits to address Calen's comments. 2012-06-20 10:31:37 -04:00
Calen Pennington
65d02819e8 Merge pull request #124 from MITx/cpennington/cms-pipeline
Switch cms over to django pipeline
2012-06-20 05:35:49 -07:00
Calen Pennington
ed6a658afe Add note about optional revision in location 2012-06-20 08:33:46 -04:00
Victor Shnayder
b963d8b534 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-19 18:28:45 -04:00
Victor Shnayder
a126935369 Add Progress class and tests 2012-06-19 18:25:13 -04:00
Calen Pennington
e865b97269 Rename test directory for consistancy 2012-06-19 14:30:19 -04:00
Calen Pennington
282372736d Add comment about None in Locations 2012-06-19 14:24:14 -04:00
Calen Pennington
47bf71ae10 Remove extra word in doc string 2012-06-19 14:17:05 -04:00
Calen Pennington
7914baccaa Change name of XModuleSystem to DescriptorSystem at usage sites 2012-06-19 11:36:22 -04:00
Calen Pennington
6fb35c4773 Cleanup intertwined descriptor and keystore code 2012-06-19 11:31:13 -04:00
Calen Pennington
5562def5b7 Add documentation of mongo query syntax usage 2012-06-19 11:29:48 -04:00
Calen Pennington
677c25ee68 Remove unused code 2012-06-19 11:29:14 -04:00
Calen Pennington
f1ffff1dc0 Cleanup and test Location, and add the ability to specify a revision 2012-06-19 11:29:13 -04:00
Calen Pennington
ef6630d733 Merge pull request #120 from MITx/cpennington/cms
CMS Beginnings
2012-06-18 13:01:39 -07:00
Calen Pennington
f8434b3a6d Move libraries that can only be imported in the context of django into common/djangoapps 2012-06-18 13:48:26 -04:00
Calen Pennington
34a696cdf6 Merge branch 'master' into cpennington/cms
Conflicts:
	rakefile
	requirements.txt
2012-06-18 13:46:33 -04:00
Calen Pennington
79e81d69b4 Delay initializition of the MongoKeyStore until required 2012-06-18 13:41:53 -04:00
Calen Pennington
5404345b1f Make tests pass when running on cms 2012-06-18 13:21:06 -04:00