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
d8a5c380
Commit
d8a5c380
authored
Nov 05, 2012
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing private method to use a single underscore
parent
d0b7f8b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lms/djangoapps/certificates/queue.py
+5
-5
No files found.
lms/djangoapps/certificates/queue.py
View file @
d8a5c380
...
@@ -122,7 +122,7 @@ class XQueueCertInterface(object):
...
@@ -122,7 +122,7 @@ class XQueueCertInterface(object):
}
}
key
=
cert
.
key
key
=
cert
.
key
self
.
_
_
send_to_xqueue
(
contents
,
key
)
self
.
_send_to_xqueue
(
contents
,
key
)
cert
.
save
()
cert
.
save
()
return
cert_status
return
cert_status
...
@@ -167,7 +167,7 @@ class XQueueCertInterface(object):
...
@@ -167,7 +167,7 @@ class XQueueCertInterface(object):
}
}
key
=
cert
.
key
key
=
cert
.
key
self
.
_
_
send_to_xqueue
(
contents
,
key
)
self
.
_send_to_xqueue
(
contents
,
key
)
cert
.
save
()
cert
.
save
()
return
cert_status
return
cert_status
...
@@ -220,18 +220,18 @@ class XQueueCertInterface(object):
...
@@ -220,18 +220,18 @@ class XQueueCertInterface(object):
'name'
:
profile
.
name
,
'name'
:
profile
.
name
,
}
}
self
.
_
_
send_to_xqueue
(
contents
,
key
)
self
.
_send_to_xqueue
(
contents
,
key
)
cert
.
save
()
cert
.
save
()
return
cert_status
return
cert_status
def
_
_
send_to_xqueue
(
self
,
contents
,
key
):
def
_send_to_xqueue
(
self
,
contents
,
key
):
# TODO - need to read queue name from settings
# TODO - need to read queue name from settings
xheader
=
make_xheader
(
xheader
=
make_xheader
(
'http://{0}/update_certificate?{1}'
.
format
(
'http://{0}/update_certificate?{1}'
.
format
(
key
,
settings
.
SITE_NAME
),
key
,
'test-pull'
)
settings
.
SITE_NAME
,
key
),
key
,
'test-pull'
)
(
error
,
msg
)
=
self
.
xqueue_interface
.
send_to_queue
(
(
error
,
msg
)
=
self
.
xqueue_interface
.
send_to_queue
(
header
=
xheader
,
body
=
json
.
dumps
(
contents
))
header
=
xheader
,
body
=
json
.
dumps
(
contents
))
...
...
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