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
7f5246f6
Commit
7f5246f6
authored
Aug 06, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed test view for grading.
parent
6d650d18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
17 deletions
+1
-17
lms/djangoapps/courseware/views.py
+1
-13
lms/urls.py
+0
-4
No files found.
lms/djangoapps/courseware/views.py
View file @
7f5246f6
...
...
@@ -34,19 +34,6 @@ log = logging.getLogger("mitx.courseware")
template_imports
=
{
'urllib'
:
urllib
}
def
test_grading
(
request
,
course_id
):
course
=
check_course
(
course_id
)
sections
,
all_descriptors
=
grades
.
get_graded_sections
(
course
)
student_module_cache
=
StudentModuleCache
(
request
.
user
,
descriptors
=
all_descriptors
)
grade_result
=
grades
.
fast_grade
(
request
.
user
,
request
,
sections
,
course
.
grader
,
student_module_cache
)
return
HttpResponse
(
"<html><head></head><body>"
+
json
.
dumps
(
grade_result
)
+
"</body></html>"
)
def
user_groups
(
user
):
if
not
user
.
is_authenticated
():
return
[]
...
...
@@ -92,6 +79,7 @@ def gradebook(request, course_id):
student_objects
=
User
.
objects
.
all
()[:
100
]
student_info
=
[]
#TODO: Only select students who are in the course
for
student
in
student_objects
:
student_module_cache
=
StudentModuleCache
(
student
,
descriptors
=
all_descriptors
)
...
...
lms/urls.py
View file @
7f5246f6
...
...
@@ -116,10 +116,6 @@ if settings.COURSEWARE_ENABLED:
#About the course
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/about$'
,
'courseware.views.course_about'
,
name
=
"about_course"
),
# TODO: Important. Remove this after testing!
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/grade$'
,
'courseware.views.test_grading'
,
name
=
"info"
),
#Inside the course
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/info$'
,
...
...
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