Make iDisplay.menu() calls non-interactive where possible

- And provide helpful errors where they're not
This commit is contained in:
Peter Eckersley
2015-12-29 14:21:05 -08:00
parent 4e0b010d3d
commit 7626975248
4 changed files with 23 additions and 9 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ def _handle_identical_cert_request(config, cert):
"Cancel this operation and do nothing"]
display = zope.component.getUtility(interfaces.IDisplay)
response = display.menu(question, choices, "OK", "Cancel")
response = display.menu(question, choices, "OK", "Cancel", default=0)
if response[0] == "cancel" or response[1] == 2:
# TODO: Add notification related to command-line options for
# skipping the menu for this case.