Repository : http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
commit 6001299da760e6d1329c0b1322e519dd3f75465c Author: Peter Hatina phatina@redhat.com Date: Tue Oct 30 21:00:37 2012 +0100
rename LmiShell to LmiConnection
cli-tools/lmi-shell.py | 8 ++++---- cli-tools/lmi/lmi_client_shell.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cli-tools/lmi-shell.py b/cli-tools/lmi-shell.py index 8d7cf68..9ee8d51 100755 --- a/cli-tools/lmi-shell.py +++ b/cli-tools/lmi-shell.py @@ -17,7 +17,7 @@ import os import sys import code -from lmi.lmi_client_shell import LmiShell +from lmi.lmi_client_shell import LmiConnection
class LmiInteractiveShell(code.InteractiveConsole): def __init__(self, prompt, more_prompt, locals = None): @@ -25,7 +25,7 @@ class LmiInteractiveShell(code.InteractiveConsole): sys.ps2 = more_prompt if locals == None: locals = {} - locals["LmiShell"] = LmiShell + locals["LmiConnection"] = LmiConnection locals["connect"] = _connect code.InteractiveConsole.__init__(self, locals)
@@ -70,13 +70,13 @@ def _lmi_interact(prompt = "> ", more_prompt = "... "): console.interact()
def _connect(hostname, username = "", password = ""): - return LmiShell(hostname, username, password) + return LmiConnection(hostname, username, password)
if __name__ == "__main__": if len(sys.argv) < 2: _lmi_interact() else: - locals = { "LmiShell" : LmiShell } + locals = { "LmiConnection" : LmiConnection } i = 1 while sys.argv[i].startswith("-"): i += 1 diff --git a/cli-tools/lmi/lmi_client_shell.py b/cli-tools/lmi/lmi_client_shell.py index 06cbb6a..e362355 100644 --- a/cli-tools/lmi/lmi_client_shell.py +++ b/cli-tools/lmi/lmi_client_shell.py @@ -264,7 +264,7 @@ class _LmiShellClient(LmiBaseClient): def callMethodRaw(self, instance, method, **params): return self._callMethodRaw(instance, method, **params)
-class LmiShell(object): +class LmiConnection(object): def __init__(self, hostname, username = "", password = ""): self.m_shell_client = _LmiShellClient(hostname, username, password)
cura-tools-devel@lists.fedorahosted.org