Will Daly
99cd3fafdb
Added error handling of XModule processing errors to CMS
...
Added tests for SchematicResponse error handling
2013-03-27 14:48:44 -04:00
Will Daly
ac86687fa1
Added exception handling that solves SchematicResponse exceptions
...
causing a 500 error.
When XModule raises a ProcessingError during an AJAX request,
this module_render now returns a 404 to further reduce number of 500
responses.
2013-03-27 14:33:59 -04:00
Will Daly
0f5e8c5f3b
pep8 fixes
2013-03-27 11:17:21 -04:00
Will Daly
5bc44e50da
Changed error messages to account for NumericalResponse formatting,
...
which is the only other response type to use StudentInputError.
2013-03-27 11:13:31 -04:00
Will Daly
285e3ee1ed
Capa response now displays full stack trace on student input error
...
if the user is a staff member.
Otherwise, it displays just the exception message.
2013-03-27 10:49:47 -04:00
Diana Huang
967cf7e6f3
Fix a problem where trying to show image response answers
...
was causing 500 errors. Add test to verify that this won't
happen again.
2013-03-26 14:43:41 -04:00
Will Daly
cd6f92c7e2
Modified log.debug call to use exc_info=True
2013-03-26 14:27:41 -04:00
Will Daly
1b07b85ef2
Removed extra 'pass' statement
2013-03-26 13:43:26 -04:00
Will Daly
47e47303dc
Refactored CustomResponse to use the same private
...
func to handle all errors related to execution of
python code.
CustomResponse now returns subclasses of Exception
instead of general Exceptions
CustomResponse no longer includes tracebacks
in the exceptions it raises (and shows to students)
2013-03-26 13:36:27 -04:00
Will Daly
3084361042
Updated template to correctly handle checkbox values
2013-03-25 15:12:06 -04:00
Will Daly
1df35507a3
Changed 'in' to '==' to fix bug #258
2013-03-25 14:13:47 -04:00
Victor Shnayder
f0e1b477f7
Merge pull request #1703 from MITx/feature/diana/matlab-input
...
Matlab Input Type
2013-03-25 08:27:56 -07:00
Diana Huang
4bda05d9eb
Fix seed assignment priority and add clearer documentation
2013-03-25 11:22:56 -04:00
Diana Huang
cda0fa0aa5
Check for None specifically when setting a new seed.
2013-03-25 11:08:51 -04:00
Jay Zoldak
08c5ab3cc9
pep8 fixes
2013-03-22 11:38:58 -04:00
Diana Huang
204f89d4dc
Make sure we are still showing the
...
message when we are queued as well.
2013-03-20 17:16:04 -04:00
Diana Huang
af1af8c6d1
Address code review feedback:
...
- improve docstrings
- only pass in the state for a particular input and
not the whole dictionary
- refactor some common code
- minor syntax cleanup
2013-03-20 14:14:54 -04:00
Diana Huang
10c6e7615b
More polish for matlab input type
2013-03-20 10:09:44 -04:00
Diana Huang
57f7acf863
Unbreak grading for capa problems
...
Clean up some pylint errors
2013-03-20 09:23:25 -04:00
Diana Huang
a2957cb3b7
Add in some JS messages for when things go wrong.
2013-03-20 09:23:25 -04:00
Diana Huang
f4d68d77f6
Add Javascript for new button and fix Python backend issues
2013-03-20 09:23:25 -04:00
Diana Huang
521c469a35
Add the ability for input types to have their own state
...
and add in a handler for ungraded responses via xqueue
2013-03-20 09:23:25 -04:00
Diana Huang
45d8086e1c
Set up ajax to submit to XQueue. Add some unit tests to make sure
...
this is working properly
2013-03-20 09:23:25 -04:00
Diana Huang
eda6169b8b
Pass along a url creator as opposed to just a url through
...
the ModuleSystem.
2013-03-20 09:23:25 -04:00
Diana Huang
58e8f7db12
- Pep8 and pylint fixes
...
- beginnings of new Matlab input type
- update progress after getting a response from xqueue
2013-03-20 09:23:25 -04:00
jmclaus
8e7990598c
Merge branch 'master' into jmclaus/genex-save-state
2013-03-20 09:23:16 +01:00
jmclaus
57b43d7a6c
Genex now saves its state
2013-03-19 16:36:55 +01:00
Will Daly
568f557dfc
Pep8 fixes
...
Changed constant to uppercase
2013-03-18 13:57:26 -04:00
Will Daly
8423816076
LMS contentstore lettuce tests now dynamically create courses in mongo
...
using terrain.factories.py and capa.tests.response_xml_factory
2013-03-15 14:04:22 -04:00
Calen Pennington
f1d4096bcd
Mark snippets as raw strings to avoid having to escape backslashes
2013-03-15 11:52:50 -04:00
Calen Pennington
6b64b4214f
Make relative imports explicitly relative
2013-03-15 11:23:22 -04:00
Calen Pennington
fd3ba7db2a
Don't make cms.djangoapps a python module
2013-03-15 10:50:46 -04:00
Calen Pennington
cfd7e6d214
Coerce correctmap keys to strings, so that they are pickleable
2013-03-12 09:32:19 -04:00
Calen Pennington
2113541632
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
...
Conflicts:
.ruby-version
cms/djangoapps/contentstore/tests/test_contentstore.py
cms/djangoapps/models/settings/course_metadata.py
common/lib/xmodule/xmodule/course_module.py
common/lib/xmodule/xmodule/modulestore/tests/factories.py
2013-03-12 07:23:28 -04:00
David Ormsbee
aceb666076
Merge pull request #1642 from MITx/fix/rocha/numericresponse-exponential
...
Make numeric response handle plus sign exponential correctly
2013-03-11 10:03:44 -07:00
Carlos Andrés Rocha
5f95c6848c
Make numeric response handle plus sign exponential correctly
...
NumericResponse was failing to accept as correct an answer with a plus
sign in the exponential. For example: 5.0e+1 was marked as incorrect
if the answer was 50. However, 5.0e1 was marked as correct. This
caused confusion, since the answer shown to students included the plus
sign.
LMS Lighthouse [#242 ]
2013-03-11 12:53:01 -04:00
Calen Pennington
95f8f811c5
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
...
Conflicts:
common/lib/xmodule/xmodule/course_module.py
2013-03-11 10:49:29 -04:00
Diana Huang
421e169e1e
Update tests with new attributes.
2013-03-11 10:29:18 -04:00
Diana Huang
0c949d20c9
Add the ability to hide correctness markers
...
with a custom message for when they submit something.
2013-03-11 10:12:33 -04:00
Will Daly
607f27e715
Fixed undefined variable error in choicegroup.html
2013-03-08 14:06:45 -05:00
Calen Pennington
8ae336792a
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
2013-03-08 12:00:10 -05:00
Will Daly
352126b417
Updated tests for correct_map to match changes made to get_npoints
2013-03-08 10:08:20 -05:00
Victor Shnayder
96541c434e
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
2013-03-08 00:43:46 -05:00
Victor Shnayder
84f05f9f61
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
...
Conflicts:
common/lib/xmodule/xmodule/capa_module.py
common/lib/xmodule/xmodule/foldit_module.py
common/lib/xmodule/xmodule/tests/__init__.py
common/lib/xmodule/xmodule/tests/test_capa_module.py
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
common/lib/xmodule/xmodule/tests/test_conditional.py
common/lib/xmodule/xmodule/tests/test_self_assessment.py
2013-03-08 00:40:18 -05:00
David Ormsbee
5f44b2de04
minor comment on partial credit
2013-03-07 23:52:01 -05:00
David Ormsbee
30f3923c15
Quick patch to regression causing partial credit to break on 6.00x
2013-03-07 23:50:09 -05:00
Diana Huang
2c6ee50ac3
Fix issue where javascript was disappearing from problem html
2013-03-07 19:39:43 -05:00
Will Daly
e86ed0db91
Merge branch 'master' into fix/will/mc_checkbox_bug
2013-03-07 12:07:34 -05:00
Will Daly
8d83d2fb4e
Added handling of condition when no multiple choice item selected,
...
but the answer is incorrect.
2013-03-07 10:52:19 -05:00
Will Daly
e841f29352
Updated CSS and template for choicegroup response
...
so that: a) checks/x marks appear after each option
for radio buttons, b) checks/x marks appear for the
entire problem (not individual options) for checkbox
buttons.
Also fixed issue with checks appearing on the next line
by changing <text> to display:inline instead of display:block
2013-03-07 10:17:03 -05:00