Commit 076619c8 by John Jarvis Committed by Carlos Andrés Rocha

Changing private method to use a single underscore

parent fb882d28
...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment