Make necessary fixes to pull request

This commit is contained in:
James Kasten
2014-12-21 21:41:12 -08:00
parent 1b2896aff2
commit 7860db63cf
4 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -9,7 +9,6 @@ import string
import sys
import M2Crypto
import requests
import zope.component
from letsencrypt.client import acme
@@ -227,7 +226,7 @@ class Client(object):
"""
if redirect is None:
redirect = zope.component.getUtility(
intefaces.IDisplay).redirect_by_default()
interfaces.IDisplay).redirect_by_default()
if redirect:
self.redirect_to_ssl(vhost)
+1 -1
View File
@@ -20,7 +20,7 @@ class NcursesDisplay(object):
self.height = height
def generic_notification(self, message):
self.dialog.msgbox(message, width=self.width, height=self.height)
self.dialog.msgbox(message, width=self.width)
def generic_menu(self, message, choices, input_text=""):
# Can accept either tuples or just the actual choices
+1 -1
View File
@@ -39,7 +39,7 @@ class Revoker(object):
zope.component.getUtility(interfaces.IDisplay).generic_notification(
"You have successfully revoked the certificate for "
"%s" % cert["cn"], width=70, height=9)
"%s" % cert["cn"])
self.remove_cert_key(cert)
self.list_certs_keys()
+2 -2
View File
@@ -132,7 +132,7 @@ def main():
def display_eula():
"""Displays the end user agreement."""
with open('EULA') as eula_file:
if not zope_component.getUtility(interfaces.IDisplay).generic_yesno(
if not zope.component.getUtility(interfaces.IDisplay).generic_yesno(
eula_file.read(), "Agree", "Cancel"):
sys.exit(0)
@@ -147,7 +147,7 @@ def choose_names(installer):
# This function adds all names
# found within the config to self.names
# Then filters them based on user selection
code, names = zope_component.getUtility(
code, names = zope.component.getUtility(
interfaces.IDisplay).filter_names(get_all_names(installer))
if code == display.OK and names:
# TODO: Allow multiple names once it is setup