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
3a6d45e7
Commit
3a6d45e7
authored
Jan 29, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grade a student even if they are on the restricted list
parent
0f39e046
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
lms/djangoapps/certificates/queue.py
+15
-17
lms/templates/dashboard.html
+1
-1
No files found.
lms/djangoapps/certificates/queue.py
View file @
3a6d45e7
...
...
@@ -164,31 +164,29 @@ class XQueueCertInterface(object):
if
is_whitelisted
or
grade
[
'grade'
]
is
not
None
:
# check to see whether the student is on the
# the embargoed country restricted list
if
self
.
restricted
.
filter
(
user
=
student
)
.
exists
():
cert
.
status
=
status
.
restricted
cert
.
save
()
return
cert
.
status
cert_status
=
status
.
generating
key
=
make_hashkey
(
random
.
random
())
cert
.
status
=
cert_status
cert
.
grade
=
grade
[
'percent'
]
cert
.
user
=
student
cert
.
course_id
=
course_id
cert
.
key
=
key
cert
.
name
=
profile
.
name
contents
=
{
'action'
:
'create'
,
'username'
:
student
.
username
,
'course_id'
:
course_id
,
'name'
:
profile
.
name
,
}
self
.
_send_to_xqueue
(
contents
,
key
)
# check to see whether the student is on the
# the embargoed country restricted list
# otherwise, put a new certificate request
# on the queue
if
self
.
restricted
.
filter
(
user
=
student
)
.
exists
():
cert
.
status
=
status
.
restricted
else
:
contents
=
{
'action'
:
'create'
,
'username'
:
student
.
username
,
'course_id'
:
course_id
,
'name'
:
profile
.
name
,
}
cert
.
status
=
status
.
generating
self
.
_send_to_xqueue
(
contents
,
key
)
cert
.
save
()
else
:
cert_status
=
status
.
notpassing
...
...
lms/templates/dashboard.html
View file @
3a6d45e7
...
...
@@ -273,7 +273,7 @@
% if cert_status['status'] == 'processing':
<p
class=
"message-copy"
>
Final course details are being wrapped up at
this time. Your final standing will be available shortly.
</p>
% elif cert_status['status'] in ('generating', 'ready', 'notpassing'):
% elif cert_status['status'] in ('generating', 'ready', 'notpassing'
, 'restricted'
):
<p
class=
"message-copy"
>
Your final grade:
<span
class=
"grade-value"
>
${"{0:.0f}%".format(float(cert_status['grade'])*100)}
</span>
.
% if cert_status['status'] == 'notpassing':
...
...
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