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
dfc40092
Commit
dfc40092
authored
Jan 17, 2014
by
Stephen Sanchez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Getting the docstrings to work.
parent
deb91dbf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
16 deletions
+22
-16
doc/source/index.rst
+2
-1
peer_grading/api.py
+20
-15
No files found.
doc/source/index.rst
View file @
dfc40092
...
...
@@ -10,7 +10,8 @@ Contents:
.. toctree::
:maxdepth: 2
.. automodule:: api
:members:
Indices and tables
...
...
peer_grading/api.py
View file @
dfc40092
def
get_next_submission
(
student_id
,
location
):
"""
Request the next submission to be peer graded.
"""
Request the next submission to be peer graded.
Args:
student_id(str): The student requesting to grade a peer. Must check to determine if the requesting student has
submitted an answer of their own.
location(str): The associated location for the submission to be graded.
student_id
(str): The student requesting to grade a peer. Must check to determine if the requesting student has
submitted an answer of their own.
location
(str): The associated location for the submission to be graded.
Returns:
Submission: The submission to grade, if one is available.
"""
pass
def
get_last_submission
(
student_id
,
location
):
"""
Used to give visibility to scoring and workflow for a submission in peer grading. If the student has submitted a
submission and has graded enough peers, this function will return the submission as is, with all available scoring
data. If the student has not finished grading peers, scoring information on their submission is withheld.
"""Used to give visibility to scoring and workflow for a submission in peer grading.
If the student has submitted a submission and has graded enough peers, this function will return the submission as
is, with all available scoring data. If the student has not finished grading peers, scoring information on their
submission is withheld.
Args:
student_id (str): The student.
location (str): The associated location.
Returns:
Submission: The student's latest submission, restrained on workflow completion.
"""
pass
def
submit_submission
(
submission
):
"""
Submit a submission for peer grading.
"""
Submit a submission for peer grading.
Args:
submission (Submission): The submission to add to the peer grading queue. Should contain the student_id,
associated location, and all answer related fields prepopulated. Submission date,
preferred grader, and other attributes can be determined internally.
associated location, and all answer related fields prepopulated. Submission date,
preferred grader, and other attributes can be determined internally.
Returns:
Submission: The saved submission.
"""
...
...
@@ -41,12 +45,13 @@ def submit_submission(submission):
def
submit_score
(
scoring
,
submission
):
"""
Submit a scoring for a particular submission
"""
Submit a scoring for a particular submission
Args:
scoring (Scoring): The score for a particular submission.
submission (Submission): The associated submission.
Returns:
bool: True if the submission succeeded.
"""
pass
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