From 9dd074f25bf523dfca6842ddd0c2b5bf1927d3e5 Mon Sep 17 00:00:00 2001 From: cahrens Date: Fri, 3 May 2013 15:09:02 -0400 Subject: [PATCH] Cleanup. --- common/lib/xmodule/xmodule/capa_module.py | 8 +++----- common/lib/xmodule/xmodule/discussion_module.py | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py index daaaba07cd..479cd5a759 100644 --- a/common/lib/xmodule/xmodule/capa_module.py +++ b/common/lib/xmodule/xmodule/capa_module.py @@ -64,12 +64,10 @@ class CapaFields(object): attempts = StringyInteger(help="Number of attempts taken by the student on this problem", default=0, scope=Scope.user_state) max_attempts = StringyInteger(help="Maximum number of attempts that a student is allowed", 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) + graceperiod = Timedelta(help="Amount of time after the due date that submissions will be accepted", scope=Scope.settings) showanswer = String(help="When to show the problem answer to the student", scope=Scope.settings, default="closed", values=["answered", "always", "attempted", "closed", "never"]) - force_save_button = Boolean(help="Whether to force the save button to appear on the page", - scope=Scope.settings, default=False) + force_save_button = Boolean(help="Whether to force the save button to appear on the page", scope=Scope.settings, default=False) rerandomize = Randomization(help="When to rerandomize the problem", default="always", scope=Scope.settings) data = String(help="XML data for the problem", scope=Scope.content) correct_map = Object(help="Dictionary with the correctness of current student answers", scope=Scope.user_state, default={}) @@ -900,4 +898,4 @@ class CapaDescriptor(CapaFields, RawDescriptor): non_editable_fields = super(CapaDescriptor, self).non_editable_metadata_fields non_editable_fields.extend([CapaDescriptor.due, CapaDescriptor.graceperiod, CapaDescriptor.force_save_button, CapaDescriptor.markdown]) - return non_editable_fields \ No newline at end of file + return non_editable_fields diff --git a/common/lib/xmodule/xmodule/discussion_module.py b/common/lib/xmodule/xmodule/discussion_module.py index 3ee2f2bae6..98082ddea2 100644 --- a/common/lib/xmodule/xmodule/discussion_module.py +++ b/common/lib/xmodule/xmodule/discussion_module.py @@ -43,4 +43,4 @@ class DiscussionDescriptor(DiscussionFields, MetadataOnlyEditingDescriptor, RawD non_editable_fields = super(DiscussionDescriptor, self).non_editable_metadata_fields # We may choose to enable sort_keys in the future, but while Kevin is investigating.... non_editable_fields.extend([DiscussionDescriptor.discussion_id, DiscussionDescriptor.sort_key]) - return non_editable_fields \ No newline at end of file + return non_editable_fields