Commit Graph

85 Commits

Author SHA1 Message Date
David Ormsbee
a32aeac013 Add info page support with multiple courses 2012-06-21 11:05:31 -04:00
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
Calen Pennington
4590f9763f Add note about optional revision in location 2012-06-21 11:05:30 -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
a392d5a4c1 Rename test directory for consistancy 2012-06-21 11:05:30 -04:00
Calen Pennington
d147638d07 Switch the cms over to using django-pipeline 2012-06-21 11:05:29 -04:00
Calen Pennington
1898691544 Add comment about None in Locations 2012-06-21 11:05:29 -04:00
Calen Pennington
591175b680 Remove extra word in doc string 2012-06-21 11:05:29 -04:00
Calen Pennington
09d53f1018 Change name of XModuleSystem to DescriptorSystem at usage sites 2012-06-21 11:05:29 -04:00
Calen Pennington
b0b728c711 Cleanup intertwined descriptor and keystore code 2012-06-21 11:05:28 -04:00
Calen Pennington
05dcd76bf1 Add documentation of mongo query syntax usage 2012-06-21 11:05:28 -04:00
Calen Pennington
2aea7df602 Remove unused code 2012-06-21 11:05:28 -04:00
Calen Pennington
f2598426ce Cleanup and test Location, and add the ability to specify a revision 2012-06-21 11:05:28 -04:00
Calen Pennington
21ae3799f7 Move libraries that can only be imported in the context of django into common/djangoapps 2012-06-21 11:05:27 -04:00
Calen Pennington
86205c21ff Delay initializition of the MongoKeyStore until required 2012-06-21 11:05:27 -04:00
Calen Pennington
d8d22ea57b Make tests pass when running on cms 2012-06-21 11:05:27 -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
ichuang
54c8d3f6b9 modify capa_problem to add <include file="foo"> functionality 2012-06-21 11:05:26 -04:00
Victor Shnayder
2a0680340f add comment/explanation to eia.py 2012-06-21 11:05:23 -04:00
Victor Shnayder
51b4d1ff6e added TODO comment 2012-06-21 11:05:23 -04:00
ichuang
7e3866866a typo in correctmap 2012-06-21 11:05:22 -04:00
ichuang
cb91b0654e private methods start with _ (in capa_problem) 2012-06-21 11:05:22 -04:00
ichuang
de82f00f37 capa_problem log.error + raise -> log.debug + # FIXME 2012-06-21 11:05:22 -04:00
ichuang
413fe95017 util: tol.endswith 2012-06-21 11:05:22 -04:00
ichuang
a424fbd1f6 responsetypes - minor edits 2012-06-21 11:05:22 -04:00
ichuang
58c494c633 fix correctmap set_dict bug - make __getitem__ call self.cmap.__getitem__ 2012-06-21 11:05:22 -04:00
ichuang
c2e701f50f revert logging instantiation to use 'mitx.' + __name__ 2012-06-21 11:05:22 -04:00
ichuang
971a772e73 removed unused answer_map parameter from capa_problem.lcp.preprocess_problem 2012-06-21 11:05:21 -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
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
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