Changing private method to use a single underscore

This commit is contained in:
John Jarvis
2012-11-05 15:04:22 -05:00
committed by Carlos Andrés Rocha
parent fb882d285f
commit 076619c81b

View File

@@ -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))