Nick Parlante
ab7d3b526b
Multiple-choice features
...
Features by Jeff Ericson and Nick Parlante squashed
down to one commit.
-shuffle of choices within a choicegroup (Nick)
-answer-pool subsetting within a choicegroup (Jeff)
-masking of choice names within a choicegroup, (Nick)
used by shuffle and answer-pool
-targeted-feedback within a multiplechoiceresponse (Jeff)
-delay-between-submissions capa feature (Jeff)
2014-04-14 15:48:29 -07:00
Calen Pennington
3a7b265c8a
Add trailing commas to multiline lists, to prevent string concatenation bugs
2014-02-13 13:12:42 -05:00
Jay Zoldak
bc30addfb9
Unicode changes to support QRF
...
fixing unit tests
fixing merge error
fixing xqueue submission issue with unicode url (trial 0.1)
fixing fotmats as commented upon
removing yaml file language selection
Unicode changes to support QRF
removed unnecessary pass in modulestore/init.py
fixing merge error
fixing fotmats as commented upon
removing yaml file language selection
fixing pep8 violations
- fixing pylint violations
pylint violation
fixing line spaces and formats
ignore pylint E1101
remove empty line
fixing pylint violations
pep8 violations
bulk mail unicode/decode
fix migration error
fix pep8 just to push again
more unicode/decode
Final changes to comments and error messages.
2014-01-30 16:20:36 -05:00
Sarina Canelake
0efa75d6f5
i18n of common/lib/capa/capa files
...
Also pep8, pylint, and style fixes
Covers:
{capa_problem, correctmap, customerender,
inputtypes, responsetypes, util, xqueue_interface}.py
LMS-1744
2014-01-17 16:39:50 -05:00
Ned Batchelder
4aa4c514ee
Add i18n attribute to LoncapaSystem
...
[LMS-1597]
2014-01-17 11:33:09 -05:00
Ned Batchelder
d2146978ea
Give LoncapaProblem its own LoncapaSystem instead of ModuleSystem
...
LoncapaProblem was using ModuleSystem directly, but we're about to need
i18n passed in, so this gives LoncapaProblem its own LoncapaSystem
object to better module its dependencies. This commit simply passes
through the attributes of ModuleSystem that Loncapa needs.
[LMS-1597]
2014-01-17 11:32:54 -05:00
Ned Batchelder
3942876e0c
Make a ResponseType registry.
...
And while I was in there, I made it a decorator, so it's nicer to use.
2014-01-16 12:25:28 -05:00
Ned Batchelder
ca7c002ca9
Keep comments in capa XML from causing failures
...
Comments (and processing instructions!) are handled oddly in lxml.
This change will keep them from causing failures. They will be omitted
from the HTML generated, which is fine, since they aren't needed there.
2013-08-27 11:08:22 -04:00
Adam Palay
b744aaa360
make sure parsed times are set to UTC
2013-07-22 17:39:11 -04:00
Adam Palay
af522af2ca
formatting
2013-07-22 17:39:11 -04:00
Carlos Andrés Rocha
e4ee1c6c9b
Rename arguments of modx_dispatch and handle_ajax related functions
...
Refactor a bit modx_dispatch
2013-06-25 13:38:57 -04:00
Ned Batchelder
df6d3f9b2f
Fix strings that should be raw.
2013-06-19 16:56:34 -04:00
Brian Wilson
a8c3e91051
Handle failure task_output that won't fit in the model column.
2013-06-18 11:17:17 -04:00
Brian Wilson
d2b3977f57
Add dogstat logging to background tasks.
2013-06-18 11:13:55 -04:00
Brian Wilson
c676cfd64a
Rename fields in CourseTaskLog, including a task_key column for indexing. Use 'rescore' instead of 'regrade'. Clean up task submission.
2013-06-18 11:13:19 -04:00
Brian Wilson
73b25e1f32
Add check for problems that (do not) support regrading.
2013-06-18 11:09:32 -04:00
Brian Wilson
91ac6e68e8
Define initial celery task on instructor dash.
...
Add CourseTaskLog, and make calls to regrading.
Add regrading implementation, and hack the marshalling of request.
2013-06-18 11:04:05 -04:00
Ned Batchelder
cab49716b5
Whitelisted courses now run Python code outside the sandbox.
2013-06-06 14:27:12 -04:00
Ned Batchelder
34911f68a7
Pass safe_exec a slug, the problem or response id; Use the latest CodeJail, with slug support.
2013-05-29 14:25:24 -04:00
Ned Batchelder
392de8d40e
Check functions need access to course-local code also, so we need to save the python path from the problem setup, and use it for the check function.
2013-05-22 13:27:24 -04:00
Ned Batchelder
4ea7607648
Check that the directory being added to the Python path is really inside the course.
2013-05-14 14:59:19 -04:00
Ned Batchelder
477fe670dd
All re-randomization has to be bucketed to get a reasonable cache hit rate.
2013-05-06 11:39:20 -04:00
Ned Batchelder
5e7d328e7f
Use the Django cache for sandboxed code execution.
2013-05-06 11:39:19 -04:00
Ned Batchelder
839c568474
Hmm, turns out exec wants just one dict to properly simulate Python module execution.
2013-05-06 11:39:17 -04:00
Ned Batchelder
7187b10f9c
Use the python_path argument to safe_exec
2013-05-06 10:55:06 -04:00
Ned Batchelder
a04317b31d
Files are properly copied in both implementations of safe_exec, and a new python_path argument adds to the python path.
2013-05-06 10:55:06 -04:00
Ned Batchelder
abb9174559
Refactor how script chunks are run.
2013-05-06 10:55:06 -04:00
Ned Batchelder
5db5426e05
Use the real safe_exec; make the seed available in the context.
2013-05-06 10:55:04 -04:00
Ned Batchelder
19e3a0ceb9
Implement safe_exec on top of jailpy (old unsafe safe_exec is still here); Remove some crazy stuff from the context; always pass globals and locals, locals are the things that can be changed.
2013-05-06 10:55:04 -04:00
Ned Batchelder
37ca6bf77e
Move our specialization of safe_exec into a new module to avoid circular imports.
2013-05-06 10:55:04 -04:00
Ned Batchelder
33abe54e0d
Work in progress to sandbox the uses of eval in LMS.
2013-05-06 10:55:03 -04:00
Will Daly
87d8a56a93
CustomResponse now imports chem packages into the global
...
context for scripts to access.
This was removed accidentally during an earlier refactoring,
which caused customresponse to raise an exception for chem problems.
Unit tests verify the changes
2013-04-01 13:27:31 -04:00
Will Daly
f90dd49556
Fixed bug in parsing of urandom struct so that seed
...
is set to an integer (and correctly saved) instead of a tuple.
2013-03-29 10:18:11 -04: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
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
57f7acf863
Unbreak grading for capa problems
...
Clean up some pylint errors
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
Calen Pennington
6b64b4214f
Make relative imports explicitly relative
2013-03-15 11:23:22 -04: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
Diana Huang
2c6ee50ac3
Fix issue where javascript was disappearing from problem html
2013-03-07 19:39:43 -05:00
Calen Pennington
8a9ba79d1f
Merge remote-tracking branch 'origin/master' into feature/alex/poll-merged
...
Conflicts:
cms/djangoapps/contentstore/views.py
common/lib/xmodule/xmodule/course_module.py
common/lib/xmodule/xmodule/open_ended_grading_classes/self_assessment_module.py
common/lib/xmodule/xmodule/peer_grading_module.py
2013-03-06 12:15:07 -05:00
Diana Huang
4b7d1deb25
Fix a bug in extracting HTML
...
Update tests to reflect new behavior.
2013-03-06 10:34:57 -05:00
Diana Huang
17680a332a
More comments.
2013-03-06 09:06:43 -05:00
Diana Huang
9b640aa06b
Add more documentation and fix naming.
2013-03-06 09:06:43 -05:00
Diana Huang
385a62d7d1
Handle multiple inputs properly for ajax handling.
2013-03-06 09:06:43 -05:00
Diana Huang
9545a82ab9
Add the ability to make ajax calls on the input type of capa problems.
2013-03-06 09:04:54 -05:00
Will Daly
68cf4c4535
Added tests for HTMl rendering of problems
...
Added support for rendering response messages
2013-03-01 09:40:38 -05:00
Calen Pennington
4f555f6480
Merge remote-tracking branch 'origin/master' into feature/cale/xmodule-storage-model
...
Conflicts:
cms/djangoapps/contentstore/course_info_model.py
cms/djangoapps/contentstore/module_info_model.py
cms/djangoapps/contentstore/tests/factories.py
cms/djangoapps/contentstore/tests/test_course_settings.py
cms/djangoapps/contentstore/views.py
cms/djangoapps/models/settings/course_details.py
cms/djangoapps/models/settings/course_grading.py
cms/templates/edit_subsection.html
common/djangoapps/mitxmako/shortcuts.py
common/djangoapps/static_replace.py
common/djangoapps/util/converters.py
common/djangoapps/xmodule_modifiers.py
common/lib/xmodule/setup.py
common/lib/xmodule/xmodule/abtest_module.py
common/lib/xmodule/xmodule/capa_module.py
common/lib/xmodule/xmodule/course_module.py
common/lib/xmodule/xmodule/discussion_module.py
common/lib/xmodule/xmodule/error_module.py
common/lib/xmodule/xmodule/html_module.py
common/lib/xmodule/xmodule/js/src/video/display.coffee
common/lib/xmodule/xmodule/mako_module.py
common/lib/xmodule/xmodule/modulestore/mongo.py
common/lib/xmodule/xmodule/modulestore/store_utilities.py
common/lib/xmodule/xmodule/modulestore/xml.py
common/lib/xmodule/xmodule/modulestore/xml_importer.py
common/lib/xmodule/xmodule/raw_module.py
common/lib/xmodule/xmodule/self_assessment_module.py
common/lib/xmodule/xmodule/seq_module.py
common/lib/xmodule/xmodule/template_module.py
common/lib/xmodule/xmodule/tests/__init__.py
common/lib/xmodule/xmodule/tests/test_export.py
common/lib/xmodule/xmodule/tests/test_import.py
common/lib/xmodule/xmodule/video_module.py
common/lib/xmodule/xmodule/x_module.py
common/lib/xmodule/xmodule/xml_module.py
lms/djangoapps/courseware/access.py
lms/djangoapps/courseware/courses.py
lms/djangoapps/courseware/grades.py
lms/djangoapps/courseware/models.py
lms/djangoapps/courseware/module_render.py
lms/djangoapps/courseware/tests/tests.py
lms/djangoapps/courseware/views.py
lms/djangoapps/django_comment_client/utils.py
lms/templates/staff_problem_info.html
lms/templates/video.html
rakefile
2013-02-07 15:12:30 -05:00