diff --git a/letsencrypt/client.py b/letsencrypt/client.py index 486eef198..3dbf9d337 100644 --- a/letsencrypt/client.py +++ b/letsencrypt/client.py @@ -130,6 +130,7 @@ def register(config, account_storage, tos_cb=None): return acc, acme + def perform_registration(acme, config): """ Actually register new account, trying repeatedly if there are email @@ -153,6 +154,7 @@ def perform_registration(acme, config): else: raise + class Client(object): """ACME protocol client. diff --git a/letsencrypt/display/util.py b/letsencrypt/display/util.py index 7107bfb3b..01a8cbc92 100644 --- a/letsencrypt/display/util.py +++ b/letsencrypt/display/util.py @@ -104,6 +104,7 @@ class NcursesDisplay(object): return code, int(tag) - 1 + def input(self, message): """Display an input box to the user. @@ -116,10 +117,11 @@ class NcursesDisplay(object): """ sections = message.split("\n") # each section takes at least one line, plus extras if it's longer than self.width - wordlines = [1+(len(section)/self.width) for section in sections] - height = 6+ sum(wordlines) + len(sections) + wordlines = [1 + (len(section)/self.width) for section in sections] + height = 6 + sum(wordlines) + len(sections) return self.dialog.inputbox(message, width=self.width, height=height) + def yesno(self, message, yes_label="Yes", no_label="No"): """Display a Yes/No dialog box.