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
zubair-arbi
f58903a50f
Merge pull request #2097 from zubair-arbi/zub/bugfix/std893-optionresponse
...
escape single quotes in optioninput (optionresponse) tags
2014-01-16 00:54:51 -08:00
polesye
1347645ef0
BLD-434: Add fix for negative exponents.
...
Set default tolerance to 1e-3% for all responsetypes.
2014-01-15 13:17:05 +02:00
polesye
ee1953b37a
BLD-474: Allow multiple answers for string response.
2014-01-15 12:51:24 +02:00
zubiar-arbi
1990a412dd
escape single quotes in optioninput (optionresponse) tags
...
STUD-893
2014-01-10 18:50:25 +05:00
David Ormsbee
b1eff059a7
Merge pull request #2014 from edx/ormsbee/grade_distribution_fix
...
Fix (re-implement) answer distribution report generation.
2013-12-20 12:43:33 -08:00
David Ormsbee
0565fbbfab
Fix (re-implement) answer distribution report generation.
...
This restores functionality that has been broken since the introduction of
XModuleDescriptor/XModule proxying (part of the XBlock transition). It generates
a CSV of all answers for all content of type "problem" in a given course, with a
row per (problem part, answer). The format is:
url_name, display name, answer id, answer, count
Example values:
url_name = "7f1b1523a55848cd9f5c93eb8cbabcf7"
display name = "Problem 1: Something Hard"
answer id = i4x-JediAcdmy-LTSB304-problem-7f1b1523a55848cd9f5c93eb8cbabcf7_2_1
answer = "Use the Force"
count = 1138
Since it only grabs things of type "problem", it will not return results for
things like self/peer-assessments. Any Loncapa problem types will show up (so
multiple choice, text input, numeric, etc.)
Instead of crawling the course tree and instantiating the appropriate CapaModule
objects to grab state, this version draws directly from StudentModule. This lets
us skip a lot of processing and most importantly lets us generate the answer
distribution without causing side-effects (since XBlocks auto-save state). It
also lets us take advantage of a read-replica database if one is available, to
minimize locking concerns.
There are minor changes to the legacy dashboard around CSV charset encoding and
a change to OptionResponseXMLFactory to make it more unicode friendly. Answer
distribution output is now also sorted, to group together answers for the same
content piece.
Note that this does not introduce celery into the process. Answer distributions
are still only available for small courses.
This was originally created to fix [LMS-922], but it also addresses [LMS-811] and
possibly other areas in the legacy dashboard where CSV downloads break due to
character encoding issues.
2013-12-20 15:05:50 -05:00
jmclaus
5478525a42
Added JSInput template to Studio and a sop attribute to JSInput. Only if it's set to false, as in JSInput's template, will JSChannel be used to bypass it. In all other cases (attribute not present or set to something else), SOP is enforced. Compatibility with jsVGL is therefore maintained. Multiple JSInput are supported in a vertical. Also, save button now functions. [BLD-523, BLD-556, BLD-568]
2013-12-20 17:03:56 +01:00
Ned Batchelder
c0c895cb47
Merge pull request #1886 from edx/ned/add-tests-for-file-uploads
...
Add a test for Django-based file uploads to problems.
2013-12-20 07:06:04 -08:00
polesye
4e10c72988
BLD-21: Show answer for imageresponse.
2013-12-17 13:22:08 +02:00
Valera Rozuvan
7ebeccd4bf
Updating ImageInput JS code base.
2013-12-17 12:21:19 +02:00
Ned Batchelder
488923fd5c
Add a test for Django-based file uploads to problems.
2013-12-07 19:53:23 -05:00
Ned Batchelder
599bdbb102
Show full diffs in ResponseType tests.
2013-12-03 14:05:33 -05:00
polesye
77c208a1cf
BLD-474: Allow multiple answers for string response.
2013-11-21 16:23:33 +02:00
RobertMarks
e3b8ce708f
changes to allow multiple choicetextresponses in one problem
2013-11-19 09:55:35 -08:00
Sarina Canelake
b1d91fad49
Merge pull request #1663 from edx/sarina/persist-student-answers-on-error
...
Sarina/persist student answers on error
2013-11-14 08:15:08 -08:00
Oleg Marshev
128846f67d
BLD-449: Fix rearrange bug in problems.
2013-11-14 13:44:58 +02:00
Sarina Canelake
9508b3f9b4
pep8/pylint fixes for capa
2013-11-13 16:12:25 -05:00
Sarina Canelake
862beafdd1
Persist student answers on input error
...
LMS-469
2013-11-13 14:15:52 -05:00
Calen Pennington
864d831ce3
Use XBlock handlers for handle_ajax in XModules
...
Adds xblock handler_url support to the LMS, and makes handle_ajax use
that code.
[LMS-230] [LMS-229]
2013-11-08 11:08:48 -05:00
Sarina Canelake
d711d29d74
Clean up pep8/pylint
2013-10-30 20:43:44 -04:00
Pavel Yushchenko
d238e03f02
remove cast to list
2013-10-24 17:04:32 +04:00
Pavel Yushchenko
0de098468f
fixes shlex unicode
2013-10-24 17:04:32 +04:00
David Baumgold
e53680bb92
make drag_and_drop component work with requirejs and changed static url
2013-10-09 10:26:22 -04:00
David Baumgold
d97921e6e2
Convert Studio JS to use require.js
2013-10-04 13:43:50 -04:00
ichuang
5b460ff6b7
add inline style flag to formulaequationinput
2013-10-04 11:56:50 -04:00
Carlos Andrés Rocha
87fcf1ab9e
Merge pull request #905 from rocha/datadog-statsd
...
Remove dogstatsd-python in favor of dogapi
2013-09-12 06:53:02 -07:00
Carlos Andrés Rocha
ee0004e2f8
Remove dogstatsd-python in favor of dogapi
...
Also added datadog application to commom django apps and set it to use
a local statsd server by default.
2013-09-11 19:28:58 -04:00
David Baumgold
871ad7d694
Pass hostname to LTI XModule
...
Necessary for RFC compliance with oauthlib
2013-09-10 14:21:56 -04:00
David Baumgold
45f38ddf81
Update requests library to 1.2.3
2013-09-10 09:59:21 -04:00
chrisndodge
9aa024b585
Merge pull request #845 from edx/bugfix/ichuang/fix-capa-optioninput-for-inline
...
Fix capa optioninput template to honor inline flag
2013-09-05 15:51:30 -07:00
ichuang
69f72989c5
consistently use inline=False as default in capa inputtypes
2013-09-04 23:13:05 -04:00
Adam Palay
300f7f13a6
fix pep8 and pylint errors
...
Conflicts:
cms/djangoapps/contentstore/views/course.py
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
lms/envs/common.py
2013-09-03 14:55:11 -04:00
ichuang
d7fdcd904a
fix capa optioninput template to honor inline flag
2013-08-31 15:14:05 -04:00
Sarina Canelake
6defd7baf1
Merge pull request #790 from edx/unanswered-on-input
...
Unanswered on input
2013-08-30 14:25:21 -07:00
Peter Baratta
fe47dcb122
Acceptance tests for visual correctness reset feature
2013-08-30 17:24:33 -04:00
Adam Palay
2284f56e20
specify preview import statements to reflect new package structure
2013-08-30 16:57:27 -04:00
Peter Baratta
48cb05c037
Reset 'correctness' visual indicator of a problem on new input
...
Affects:
Choicegroups, option inputs, textline, and formula equation inputs
2013-08-30 12:03:41 -04:00
Will Daly
fc5a24dfc0
Merge pull request #801 from edx/will/remove-test-network-calls
...
Remove network calls in test suite
2013-08-29 11:42:19 -07:00
Ned Batchelder
30cf0b57e6
Fix the requirements in the sandbox instructions
2013-08-28 16:04:43 -04:00
Ned Batchelder
3194e54400
Merge pull request #805 from edx/ned/fix-allow-comments-in-capa-xml
...
Keep comments in capa XML from causing failures
2013-08-28 06:58:51 -07:00
Ned Batchelder
2c544cb0bd
A test that our XML-comments fix works.
2013-08-27 11:44:41 -04: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
Felix Sun
444f51d6de
Fixed some pep/pylint violations.
2013-08-27 09:46:02 -04:00
Will Daly
db6d76d643
Patched textbook TOC request during course import.
...
Patched Snuggletex server calls
2013-08-27 08:28:15 -04:00
Felix Sun
e6067d8814
Addressed PR comments.
...
Fixed coffeescript event logging error.
Fixed crowdsourced hinter dependence on self.field.append() not working.
2013-08-26 09:40:05 -04:00
Felix Sun
69fbe77dcb
Fixed a rebase error in responsetypes.
...
Fixed a css bug in the hinter.
2013-08-26 09:40:05 -04:00