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
32f9f631
Commit
32f9f631
authored
Jun 01, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed accidental duplicate of certificate request view.
parent
1896372c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
33 deletions
+0
-33
djangoapps/courseware/views.py
+0
-33
No files found.
djangoapps/courseware/views.py
View file @
32f9f631
...
@@ -219,36 +219,3 @@ def index(request, course="6.002 Spring 2012", chapter="Using the System", secti
...
@@ -219,36 +219,3 @@ def index(request, course="6.002 Spring 2012", chapter="Using the System", secti
result
=
render_to_response
(
'courseware.html'
,
context
)
result
=
render_to_response
(
'courseware.html'
,
context
)
return
result
return
result
def
certificate_request
(
request
):
''' Attempt to send a certificate. '''
if
request
.
method
!=
"POST"
:
raise
Http404
verification_checked
=
request
.
POST
.
get
(
'cert_request_verify'
,
'false'
)
destination_email
=
request
.
POST
.
get
(
'cert_request_email'
,
''
)
error
=
''
if
verification_checked
!=
'true'
:
error
+=
'You must verify that you have followed the honor code to receive a certificate. '
# TODO: Check e-mail format is correct.
if
len
(
destination_email
)
<
5
:
error
+=
'Please provide a valid email address to send the certificate. '
grade
=
None
if
len
(
error
)
==
0
:
student_gradesheet
=
grades
.
grade_sheet
(
request
.
user
)
grade
=
student_gradesheet
[
'grade'
]
if
not
grade
:
error
+=
'You have not earned a grade in this course. '
if
len
(
error
)
==
0
:
# TODO: Send the certificate email
return
HttpResponse
(
json
.
dumps
({
'success'
:
True
,
'value'
:
'A certificate is being generated and will be sent. '
}))
else
:
return
HttpResponse
(
json
.
dumps
({
'success'
:
False
,
'error'
:
error
}))
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