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
4cbae226
Commit
4cbae226
authored
Mar 06, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up how grading policy is set
parent
e7900859
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
common/lib/xmodule/xmodule/course_module.py
+3
-4
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
4cbae226
...
...
@@ -242,11 +242,11 @@ class CourseDescriptor(SequenceDescriptor):
log
.
error
(
msg
)
continue
def
defaut_grading_policy
(
self
):
def
defau
l
t_grading_policy
(
self
):
"""
Return a dict which is a copy of the default grading policy
"""
default
=
{
"GRADER"
:
[
return
{
"GRADER"
:
[
{
"type"
:
"Homework"
,
"min_count"
:
12
,
...
...
@@ -278,7 +278,6 @@ class CourseDescriptor(SequenceDescriptor):
"GRADE_CUTOFFS"
:
{
"Pass"
:
0.5
}}
return
copy
.
deepcopy
(
default
)
def
set_grading_policy
(
self
,
course_policy
):
"""
...
...
@@ -289,7 +288,7 @@ class CourseDescriptor(SequenceDescriptor):
course_policy
=
{}
# Load the global settings as a dictionary
grading_policy
=
self
.
defaut_grading_policy
()
grading_policy
=
self
.
defau
l
t_grading_policy
()
# Override any global settings with the course settings
grading_policy
.
update
(
course_policy
)
...
...
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