Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor

This commit is contained in:
cahrens
2013-01-03 14:11:58 -05:00
2 changed files with 15 additions and 0 deletions

View File

@@ -658,6 +658,8 @@ class CapaDescriptor(RawDescriptor):
# TODO (vshnayder): do problems have any other metadata? Do they
# actually use type and points?
metadata_attributes = RawDescriptor.metadata_attributes + ('type', 'points')
system_metadata_fields = RawDescriptor.system_metadata_fields + ['markdown']
def get_context(self):
_context = RawDescriptor.get_context(self)

View File

@@ -3,6 +3,19 @@ metadata:
display_name: Numerical Response
rerandomize: never
showanswer: always
markdown: "A numerical response problem accepts a line of text input from the
student, and evaluates the input for correctness based on its
numerical value.
The answer is correct if it is within a specified numerical tolerance
of the expected answer.
Enter the numerical value of Pi: = 3.14159 +- .02
Enter the approximate value of 502*9: = 4518 +- 15%
Enter the number of fingers on a human hand: = 5 +- 0
"
data: |
<problem>
<p>