Prevent invalid numeric entries.

This commit is contained in:
cahrens
2013-05-20 13:26:27 -04:00
parent c356904027
commit 2020923f2d
4 changed files with 38 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ class CapaFields(object):
seed = StringyInteger(help="Random seed for this student", scope=Scope.user_state)
weight = StringyFloat(display_name="Problem Weight",
help="Specifies the number of points the problem is worth. If unset, each response field in the problem is worth one point.",
values = {"min" : 0 , "step": ".1"},
values = {"min" : 0 , "step": .1},
scope=Scope.settings)
markdown = String(help="Markdown source of this module", scope=Scope.settings)
source_code = String(help="Source code for LaTeX and Word problems. This feature is not well-supported.",