From 076619c81b8a5afad29225e07ca08bd516a998e9 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Mon, 5 Nov 2012 15:04:22 -0500 Subject: [PATCH] Changing private method to use a single underscore --- lms/djangoapps/certificates/queue.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index 0bb238474b..7ee9adddcf 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -122,7 +122,7 @@ class XQueueCertInterface(object): } key = cert.key - self.__send_to_xqueue(contents, key) + self._send_to_xqueue(contents, key) cert.save() return cert_status @@ -167,7 +167,7 @@ class XQueueCertInterface(object): } key = cert.key - self.__send_to_xqueue(contents, key) + self._send_to_xqueue(contents, key) cert.save() return cert_status @@ -220,18 +220,18 @@ class XQueueCertInterface(object): 'name': profile.name, } - self.__send_to_xqueue(contents, key) + self._send_to_xqueue(contents, key) cert.save() 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 xheader = make_xheader( '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( header=xheader, body=json.dumps(contents))