Victor Shnayder
d6cb432842
Replace overriding constructor with a setup() method.
...
- allows catching any exceptions and making sure the xml is in the error message
- isolates subclasses from external interface a bit
2012-10-29 07:42:11 -04:00
Victor Shnayder
1a843c2d77
Remove non-working TrueFalse functionality from choicegroup, combine tests with radiogroup and checkboxgroup
2012-10-29 07:23:27 -04:00
Arjun Singh
f728123caa
Improve fileinput message
2012-10-28 15:40:36 -07:00
kimth
49bad83caf
Support for multiple rectangle hitboxes in imageresponse
2012-10-28 04:38:59 +00:00
Victor Shnayder
1d4990458e
add todos about would-be-nice refactors
2012-10-27 20:09:02 -04:00
Victor Shnayder
6324eeeecb
add note about mysterious -15 in the code
2012-10-27 20:00:18 -04:00
Victor Shnayder
cc8f0a1634
Fix merge bugs
2012-10-27 19:57:29 -04:00
Victor Shnayder
d36d8cba6b
Cleanups:
...
- switch to using registry
- pull math and solution "input types" into a separate customrender.py file
- make capa_problem use new custom renderers and input types registries
- remove unused imports, methods, etc
- add tests for math and solution tags.
2012-10-27 19:52:16 -04:00
Victor Shnayder
f6637b7fe0
Add a registry that keeps track of tag->renderer/input mappings
2012-10-27 19:51:05 -04:00
Victor Shnayder
2fab97c166
Refactor imageinput and crystallography.
...
- also add a test for chemicalequationinput
2012-10-27 19:51:05 -04:00
Victor Shnayder
9135d7b2db
minor cleanup in math function
2012-10-27 19:36:39 -04:00
Victor Shnayder
80d0952d16
Refactor schematic input
2012-10-27 19:36:39 -04:00
Victor Shnayder
935e370184
Refactor textbox.
...
- tests
- rename it codeinput, with textbox still supported too
2012-10-27 19:36:39 -04:00
Victor Shnayder
c8bc46b6fa
Convert FileSubmission input to be a class.
...
- add test
2012-10-27 19:36:38 -04:00
Victor Shnayder
c2682273a8
Convert textline input into class.
...
Unify math and non-math code and templates.
Add tests.
2012-10-27 19:36:38 -04:00
Victor Shnayder
0c6f6f873b
add a template for a new input type class
2012-10-27 19:36:38 -04:00
Victor Shnayder
d0a9b231a4
Turn javascriptinput into a class, add tests
2012-10-27 19:36:38 -04:00
Victor Shnayder
009d6c2e01
ChoiceGroup refactor
...
- Make it into a class.
- Combine ChoiceGroup, RadioGroup, CheckboxGroup implementation. (All three tags still work--this just unifies the code)
- add tests
2012-10-27 19:36:38 -04:00
Victor Shnayder
6d9fe76dbb
wip. adding tests, basic refactor
2012-10-27 19:36:38 -04:00
Александр
1d21473182
Merge branch 'feature-alex-vsepr-mitx'
2012-10-26 18:30:25 +03:00
Александр
9558629e15
fix merge error
2012-10-26 18:21:00 +03:00
Александр
5cd04906e6
fix typo
2012-10-26 18:16:37 +03:00
Александр
c1e75e083f
added unittests
2012-10-26 18:09:54 +03:00
Александр
c5f6f7ada2
html entities are renamed to work with different id's
2012-10-26 18:09:53 +03:00
Александр
948f8090eb
grading for vsepr
2012-10-26 18:09:53 +03:00
Александр
5185df3805
continue vsepr grading
2012-10-26 18:09:53 +03:00
Александр
94b70fd891
start grading implementation
2012-10-26 18:09:53 +03:00
Александр
e6eedb9293
added chemtools to chem module in capa, and added it to global context
2012-10-26 18:09:53 +03:00
Александр
6306d98007
vsepr: geometries and molecules now are passed from xml as parameters
2012-10-26 18:06:17 +03:00
Piotr Mitros
495814c7f6
Hacked better alignment for VSEPR for demo
2012-10-26 18:06:16 +03:00
Александр
bf4d5bf799
starting enviroment
2012-10-26 18:06:16 +03:00
Calen Pennington
b52ed48221
Merge remote-tracking branch 'origin/master' into feature/cale/cms-master
...
Conflicts:
common/lib/capa/capa/responsetypes.py
common/lib/xmodule/xmodule/js/src/html/display.coffee
lms/envs/common.py
2012-10-23 13:38:11 -04:00
Vik Paruchuri
51f3b7195e
roll back changes to common
2012-10-23 13:20:37 -04:00
Vik Paruchuri
d76241e6ae
prefix metrics with lms, use tags for enrollment
2012-10-23 10:56:00 -04:00
Vik Paruchuri
3ba45fec73
added instrumentation, including user logins,registrations,enrollment,correct answers
2012-10-22 20:01:39 -04:00
Vik Paruchuri
f296815d51
added instrumentation to count: user logins, registrations, correct answers, wrong answers, enrollment
2012-10-22 19:50:34 -04:00
Victor Shnayder
1806699f26
typos
2012-10-18 20:25:52 -04:00
Victor Shnayder
5177e8c656
Catch unicode errors in contextualize_text and deal with them.
2012-10-18 20:23:49 -04:00
kimth
57f49353d8
Fix CR showanswer template
2012-10-15 22:09:19 +00:00
ichuang
8742ba76a3
improved latex problem template; hls codemirror box autosizes height;
...
capa responsetypes can now include "inline='1'" for their span to be inline
2012-10-14 20:19:14 -04:00
Victor Shnayder
15d4af26a5
Merge pull request #899 from MITx/feature/victor/capa-ajax
...
Make chem preview more robust
2012-10-14 08:40:39 -07:00
Victor Shnayder
f4d8df94dd
Make chem preview more robust
...
- give the preview div an id, use that to look it up instead of dancing around in the DOM
2012-10-14 11:35:32 -04:00
Victor Shnayder
adae176943
merge
2012-10-12 23:06:39 -04:00
Victor Shnayder
619e9f18ac
Merge pull request #884 from MITx/feature/victor/capa-ajax
...
address Ike's comments.
2012-10-12 14:08:11 -07:00
Victor Shnayder
54d1f2afac
address Ike's comments.
2012-10-12 17:03:11 -04:00
ichuang
fd5c7c622c
Merge pull request #862 from MITx/feature/victor/capa-ajax
...
Feature/victor/capa ajax
I'm happy with all the changes to inputtypes, modulo the minor comments.
I didn't read chemcalc.py closely, but the tests look good.
2012-10-12 13:51:10 -07:00
Victor Shnayder
d78e041c2d
Testing and small fixes
...
- make chemical_equations_equal return False instead of raising errors.
- make tests not choke on unicode
- get full coverage
2012-10-12 15:32:36 -04:00
Victor Shnayder
f6f2663b77
fix arrows list
2012-10-12 14:08:21 -04:00
Victor Shnayder
b6f7427e22
make tests pass again
2012-10-12 14:02:22 -04:00
Victor Shnayder
19d3cb3870
Add a chemicalequationinput with live preview
...
- architecturally slightly questionable: the preview ajax calls goes to an LMS view instead of an input type specific one. This needs to be fixed during the grand capa re-org, but there isn't time to do it right now.
- also, I kind of like having a generic turn-a-formula-into-a-preview service available
2012-10-12 13:52:48 -04:00