Commit Graph

23 Commits

Author SHA1 Message Date
ichuang
31871a0548 modify capa_problem to add <include file="foo"> functionality 2012-06-21 10:59:43 -04:00
ichuang
6f35f4887f private methods start with _ (in capa_problem) 2012-06-21 10:59:39 -04:00
ichuang
929bfc4085 capa_problem log.error + raise -> log.debug + # FIXME 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
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
47e0317b7c fix xmodule/capa tests to use 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
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
f78be58141 Cleaning up pep8 issues, including extraneous imports 2012-06-07 16:41:01 -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
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
0a5e6ce681 A little refactoring to make clearer what running test on problem means 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
a2c4948cc5 initial commit for checker script that validates problem files 2012-06-07 16:39:55 -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