help="This specifies the number of times the student can try to answer this problem. If unset, infinite attempts are allowed.",
values={"min":1},scope=Scope.settings)
max_attempts=StringyInteger(
display_name="Maximum Attempts",
help="Defines the number of times a student can try to answer this problem. If the value is not set, infinite attempts are allowed.",
values={"min":1},scope=Scope.settings
)
due=Date(help="Date that this problem is due by",scope=Scope.settings)
graceperiod=Timedelta(help="Amount of time after the due date that submissions will be accepted",scope=Scope.settings)
showanswer=String(display_name="Show Answer",
help="Specifies when to show the answer to this problem. A default value can be set course-wide in Advanced Settings.",
showanswer=String(
display_name="Show Answer",
help="Defines when to show the answer to the problem. A default value can be set in Advanced Settings.",
scope=Scope.settings,default="closed",
values=[
{"display_name":"Always","value":"always"},
...
...
@@ -81,26 +84,33 @@ class CapaFields(object):
{"display_name":"Closed","value":"closed"},
{"display_name":"Finished","value":"finished"},
{"display_name":"Past Due","value":"past_due"},
{"display_name":"Never","value":"never"}])
{"display_name":"Never","value":"never"}]
)
force_save_button=Boolean(help="Whether to force the save button to appear on the page",scope=Scope.settings,default=False)
rerandomize=Randomization(display_name="Randomization",help="Specifies whether variable inputs for this problem are randomized each time a student loads the problem. This only applies to problems that have randomly generated numeric variables. A default value can be set course-wide in Advanced Settings.",
rerandomize=Randomization(
display_name="Randomization",help="Defines how often inputs are randomized when a student loads the problem. This setting only applies to problems that can have randomly generated numeric values. A default value can be set in Advanced Settings.",