Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c7e37887
Commit
c7e37887
authored
Jun 13, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge updates.
parent
fae8fd38
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/capa_module.py
+1
-1
common/lib/xmodule/xmodule/peer_grading_module.py
+2
-2
common/lib/xmodule/xmodule/tests/test_xml_module.py
+1
-1
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
c7e37887
...
@@ -315,7 +315,7 @@ class CapaModule(CapaFields, XModule):
...
@@ -315,7 +315,7 @@ class CapaModule(CapaFields, XModule):
# If the user has forced the save button to display,
# If the user has forced the save button to display,
# then show it as long as the problem is not closed
# then show it as long as the problem is not closed
# (past due / too many attempts)
# (past due / too many attempts)
if
self
.
force_save_button
==
"true"
:
if
self
.
force_save_button
:
return
not
self
.
closed
()
return
not
self
.
closed
()
else
:
else
:
is_survey_question
=
(
self
.
max_attempts
==
0
)
is_survey_question
=
(
self
.
max_attempts
==
0
)
...
...
common/lib/xmodule/xmodule/peer_grading_module.py
View file @
c7e37887
...
@@ -54,7 +54,7 @@ class PeerGradingFields(object):
...
@@ -54,7 +54,7 @@ class PeerGradingFields(object):
help
=
"Student data for a given peer grading problem."
,
help
=
"Student data for a given peer grading problem."
,
scope
=
Scope
.
user_state
scope
=
Scope
.
user_state
)
)
weight
=
Stringy
Float
(
weight
=
Float
(
display_name
=
"Problem Weight"
,
display_name
=
"Problem Weight"
,
help
=
"Defines the number of points each problem is worth. If the value is not set, each problem is worth one point."
,
help
=
"Defines the number of points each problem is worth. If the value is not set, each problem is worth one point."
,
scope
=
Scope
.
settings
,
values
=
{
"min"
:
0
,
"step"
:
".1"
}
scope
=
Scope
.
settings
,
values
=
{
"min"
:
0
,
"step"
:
".1"
}
...
@@ -112,7 +112,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
...
@@ -112,7 +112,7 @@ class PeerGradingModule(PeerGradingFields, XModule):
if
not
self
.
ajax_url
.
endswith
(
"/"
):
if
not
self
.
ajax_url
.
endswith
(
"/"
):
self
.
ajax_url
=
self
.
ajax_url
+
"/"
self
.
ajax_url
=
self
.
ajax_url
+
"/"
#
Stringy
Integer could return None, so keep this check.
# Integer could return None, so keep this check.
if
not
isinstance
(
self
.
max_grade
,
int
):
if
not
isinstance
(
self
.
max_grade
,
int
):
raise
TypeError
(
"max_grade needs to be an integer."
)
raise
TypeError
(
"max_grade needs to be an integer."
)
...
...
common/lib/xmodule/xmodule/tests/test_xml_module.py
View file @
c7e37887
...
@@ -105,7 +105,7 @@ class EditableMetadataFieldsTest(unittest.TestCase):
...
@@ -105,7 +105,7 @@ class EditableMetadataFieldsTest(unittest.TestCase):
def
test_type_and_options
(
self
):
def
test_type_and_options
(
self
):
# test_display_name_field verifies that a String field is of type "Generic".
# test_display_name_field verifies that a String field is of type "Generic".
# test_integer_field verifies that a
Stringy
Integer field is of type "Integer".
# test_integer_field verifies that a Integer field is of type "Integer".
descriptor
=
self
.
get_descriptor
({})
descriptor
=
self
.
get_descriptor
({})
editable_fields
=
descriptor
.
editable_metadata_fields
editable_fields
=
descriptor
.
editable_metadata_fields
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment