Commit Graph

61 Commits

Author SHA1 Message Date
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
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
Prem Sichanugrist
ac4f09ac4e Replace dynamite code with tested version 2012-06-08 11:16:03 -04:00
Prem Sichanugrist
c340ffe0a3 Fix code formatting 2012-06-08 10:40:25 -04:00
ichuang
9d0dfd2f02 fix dogfood wrt lms / xmodule reorg; fix textinput_dynamath call 2012-06-07 22:03:47 -04:00
Calen Pennington
80eb769d0c Pull StudentInputError from the module it's actually defined in 2012-06-07 16:43:59 -04:00
Calen Pennington
af8155641b Move remaining capa templates from courseware into common module 2012-06-07 16:41:01 -04:00
Calen Pennington
f78be58141 Cleaning up pep8 issues, including extraneous imports 2012-06-07 16:41:01 -04:00
Calen Pennington
f2309b3112 Remove references to djangosettings from responsetypes.py 2012-06-07 16:41:01 -04:00
Calen Pennington
f2423ca15e Add a local system with a mako render function for testing problems 2012-06-07 16:39:56 -04:00
Calen Pennington
684be8d257 Move capa templates into the capa library 2012-06-07 16:39:56 -04:00
David Ormsbee
8643b72550 Change inaccurate comment. 2012-06-07 16:39:56 -04:00
David Ormsbee
46e108e15b remove assumption that LoncapaProblem.fileobject is actually a file on the filesystem 2012-06-07 16:39:55 -04:00
David Ormsbee
b096981482 add a 'show' command to our little problem utility 2012-06-07 16:39:55 -04:00
David Ormsbee
9f2bce0001 Catch common case where problem answers are specified with units but don't expect them in the input 2012-06-07 16:39:55 -04:00
David Ormsbee
3cbb74aee7 fix breakage in problem checker caused by LoncapaProblem taking a file object in its constructor instead of a filename 2012-06-07 16:39:55 -04:00
David Ormsbee
accdbdd660 Check that blank answers are never marked correct (because of NaN issues) 2012-06-07 16:39:55 -04:00
David Ormsbee
0a5e6ce681 A little refactoring to make clearer what running test on problem means 2012-06-07 16:39:55 -04:00
David Ormsbee
d9e72b91ba add commandline flag for logging level 2012-06-07 16:39:55 -04:00
David Ormsbee
8131cb3334 Allow problem tests to run even if problems can't give us answers to check.
customresponses can't tell us what their answer is (there can be a
wide range of answers -- it's verified by a small program). So here
we simply ignore those fields we can't generate answers for when
doing tests against problems.
2012-06-07 16:39:55 -04:00
David Ormsbee
2c6efbfd5d only run problem testing when test command is entered in CLI 2012-06-07 16:39:55 -04:00