Merge pull request #3104 from cortesi/cmdcall

Zap some commands.call invocations that were missed in the rename
This commit is contained in:
Aldo Cortesi 2018-05-07 19:19:51 +12:00 committed by GitHub
commit 7ec9c5524f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -147,7 +147,7 @@ class ConsoleAddon:
fv = self.master.window.current("options")
if not fv:
raise exceptions.CommandError("Not viewing options.")
self.master.commands.call("options.reset.one %s" % fv.current_name())
self.master.commands.execute("options.reset.one %s" % fv.current_name())
@command.command("console.nav.start")
def nav_start(self) -> None:
@ -237,7 +237,7 @@ class ConsoleAddon:
repl = cmd + " " + " ".join(args)
repl = repl.replace("{choice}", opt)
try:
self.master.commands.call(repl)
self.master.commands.execute(repl)
except exceptions.CommandError as e:
signals.status_message.send(message=str(e))
@ -265,7 +265,7 @@ class ConsoleAddon:
repl = shlex.quote(" ".join(args))
repl = repl.replace("{choice}", opt)
try:
self.master.commands.call(subcmd + " " + repl)
self.master.commands.execute(subcmd + " " + repl)
except exceptions.CommandError as e:
signals.status_message.send(message=str(e))
@ -287,7 +287,7 @@ class ConsoleAddon:
"""
option_value = getattr(self.master.options, option, None)
current_value = option_value if option_value else ""
self.master.commands.call(
self.master.commands.execute(
"console.command set %s=%s" % (option, current_value)
)
@ -429,7 +429,7 @@ class ConsoleAddon:
elif part == "set-cookies":
self.master.switch_view("edit_focus_setcookies")
elif part in ["url", "method", "status_code", "reason"]:
self.master.commands.call(
self.master.commands.execute(
"console.command flow.set @focus %s " % part
)

View File

@ -27,7 +27,7 @@ class FlowItem(urwid.WidgetWrap):
def mouse_event(self, size, event, button, col, row, focus):
if event == "mouse press" and button == 1:
if self.flow.request:
self.master.commands.call("console.view.flow @focus")
self.master.commands.execute("console.view.flow @focus")
return True
def keypress(self, size, key):