Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit 4c5b4326d7b181880706e2a2451c0ce81e42a401
Author: Peter Hatina <phatina(a)redhat.com>
Date: Tue Feb 12 10:30:49 2013 +0100
fix completion of _LmiInstanceName
---------------------------------------------------------------
cli-tools/lmishell | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cli-tools/lmishell b/cli-tools/lmishell
index 2102421..8c98701 100755
--- a/cli-tools/lmishell
+++ b/cli-tools/lmishell
@@ -27,6 +27,7 @@ from lmi.lmi_client_shell import _LmiNamespace
from lmi.lmi_client_shell import _LmiNamespaceRoot
from lmi.lmi_client_shell import _LmiClass
from lmi.lmi_client_shell import _LmiInstance
+from lmi.lmi_client_shell import _LmiInstanceName
def get_item_or_default(dic, item, default):
return dic[item] if item in dic else default
@@ -126,7 +127,7 @@ class _LmiCompleter(rlcompleter.Completer):
def _callable_postfix(self, val, word):
if hasattr(val, '__call__') \
- and not isinstance(val, (_LmiNamespace, _LmiClass, _LmiInstance,
LmiReturnValue)):
+ and not isinstance(val, (_LmiNamespace, _LmiClass, _LmiInstance,
_LmiInstanceName, LmiReturnValue)):
word = word + "("
return word