From e85b699179d7a09bc029443a10df3cb636af3930 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 6 Apr 2008 19:52:09 +0000 Subject: knotty.py: Rename frontend to server to make things a bit clearer --- lib/bb/ui/knotty.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/bb/ui/knotty.py') diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py index 12c1b3838..9e8966030 100644 --- a/lib/bb/ui/knotty.py +++ b/lib/bb/ui/knotty.py @@ -29,18 +29,18 @@ import xmlrpclib parsespin = itertools.cycle( r'|/-\\' ) -def init(frontend, eventHandler): +def init(server, eventHandler): # Get values of variables which control our output - includelogs = frontend.runCommand(["readVariable", "BBINCLUDELOGS"]) - loglines = frontend.runCommand(["readVariable", "BBINCLUDELOGS_LINES"]) + includelogs = server.runCommand(["readVariable", "BBINCLUDELOGS"]) + loglines = server.runCommand(["readVariable", "BBINCLUDELOGS_LINES"]) try: - cmdline = frontend.runCommand(["getCmdLineAction"]) + cmdline = server.runCommand(["getCmdLineAction"]) #print cmdline if not cmdline: return 1 - ret = frontend.runCommand(cmdline) + ret = server.runCommand(cmdline) if ret != True: print "Couldn't get default commandline! %s" % ret return 1 @@ -148,10 +148,10 @@ def init(frontend, eventHandler): break if shutdown == 1: print "\nSecond Keyboard Interrupt, stopping...\n" - frontend.runCommand(["stateStop"]) + server.runCommand(["stateStop"]) if shutdown == 0: print "\nKeyboard Interrupt, closing down...\n" - frontend.runCommand(["stateShutdown"]) + server.runCommand(["stateShutdown"]) shutdown = shutdown + 1 pass return return_value -- cgit 1.2.3-korg