diff options
author | Tim McNamara <code@timmcnamara.co.nz> | 2010-08-14 20:53:49 (GMT) |
---|---|---|
committer | Tim McNamara <code@timmcnamara.co.nz> | 2010-08-14 20:53:49 (GMT) |
commit | 2c0931e8d3266ad826ec70abdf679eafa29d6f03 (patch) | |
tree | a965a7642036af5a281bf282221f7ad07247594a | |
parent | 956985286b9f550e9210828a282281ec5b3003fb (diff) |
Renamed the args var to scripts
Used a more specific variable name for the scripts that are
being added to the XML-RPC server.
-rwxr-xr-x | Experior.Activity/sbrpcserver.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Experior.Activity/sbrpcserver.py b/Experior.Activity/sbrpcserver.py index 59b748c..99514ba 100755 --- a/Experior.Activity/sbrpcserver.py +++ b/Experior.Activity/sbrpcserver.py @@ -77,7 +77,7 @@ class sbRpcServer(SimpleXMLRPCServer): """ sugarbotActivityVar = 'sugarActivityName' - def __init__(self, args=[], xmlport=port, kill=False, restart=False): + def __init__(self, scripts=[], xmlport=port, kill=False, restart=False): # Random port? if xmlport is None: xmlport = random.randint(1024,65000) @@ -101,10 +101,9 @@ class sbRpcServer(SimpleXMLRPCServer): self.kill = kill self.restart = restart self.log.info("Kill: %s\tRestart: %s" % (kill,restart)) - - # All of the arguments should be filenames for files to parse. - for arg in args: - self.addScript(arg) + + for script in scripts: + self.addScript(script) # Register all of the functions so that callers can use them self.registerFunctions() |