Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
e747ce64
Commit
e747ce64
authored
Jan 05, 2015
by
muzaffaryousaf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code refactoring.
TNL-836
parent
d7bf8590
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
openassessment/xblock/openassessmentblock.py
+7
-2
openassessment/xblock/staff_info_mixin.py
+2
-2
No files found.
openassessment/xblock/openassessmentblock.py
View file @
e747ce64
...
@@ -207,9 +207,12 @@ class OpenAssessmentBlock(
...
@@ -207,9 +207,12 @@ class OpenAssessmentBlock(
def
get_anonymous_user_id
(
self
,
username
,
course_id
):
def
get_anonymous_user_id
(
self
,
username
,
course_id
):
"""
"""
Get the anonymous user id from Xblock user service.
Args:
Args:
username: user's name entered by staff to get info.
username(str): user's name entered by staff to get info.
course_id: course id.
course_id(str): course id.
Returns:
Returns:
A unique id for (user, course) pair
A unique id for (user, course) pair
"""
"""
...
@@ -220,6 +223,8 @@ class OpenAssessmentBlock(
...
@@ -220,6 +223,8 @@ class OpenAssessmentBlock(
See also: submissions.api for details.
See also: submissions.api for details.
Args:
anonymous_user_id(str):
Returns:
Returns:
(dict): The student item associated with this XBlock instance. This
(dict): The student item associated with this XBlock instance. This
includes the student id, item id, and course id.
includes the student id, item id, and course id.
...
...
openassessment/xblock/staff_info_mixin.py
View file @
e747ce64
...
@@ -194,11 +194,11 @@ class StaffInfoMixin(object):
...
@@ -194,11 +194,11 @@ class StaffInfoMixin(object):
@XBlock.handler
@XBlock.handler
@require_course_staff
(
"STUDENT_INFO"
)
@require_course_staff
(
"STUDENT_INFO"
)
def
render_student_info
(
self
,
data
,
suffix
=
''
):
# pylint: disable=W0613
def
render_student_info
(
self
,
data
,
suffix
=
''
):
# pylint: disable=W0613
"""
"""
Renders all relative information for a specific student's workflow.
Renders all relative information for a specific student's workflow.
Given a student's
ID
, we can render a staff-only section of the page
Given a student's
username
, we can render a staff-only section of the page
with submissions and assessments specific to the student.
with submissions and assessments specific to the student.
Must be course staff to render this view.
Must be course staff to render this view.
...
...
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