mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Make necessary fixes to pull request
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user