diff options
| author | Gordon Sim <gsim@apache.org> | 2008-05-12 19:45:22 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-05-12 19:45:22 +0000 |
| commit | 6f145c117cebc1c75e993ad67facd11b8363f3c9 (patch) | |
| tree | 05f02953d4ae7e9533b0dfccdf44a3f609ec8ef4 /python/commands | |
| parent | 277e5e1f1e7bc26e2c8aff065e84ef0861a851c2 (diff) | |
| download | qpid-python-6f145c117cebc1c75e993ad67facd11b8363f3c9.tar.gz | |
QPID-1052: Patch from Ted Ross
This patch contains the following:
1) The session-id reported by the management API now matches the session.name in the session table
2) management.py API has a new callback for closed connections
3) qpid-tool uses the closed-connection handler to notify the user of a lost connection
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@655619 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/commands')
| -rwxr-xr-x | python/commands/qpid-tool | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/python/commands/qpid-tool b/python/commands/qpid-tool index 1aee3a1b7f..9977db3518 100755 --- a/python/commands/qpid-tool +++ b/python/commands/qpid-tool @@ -31,16 +31,23 @@ from qpid.peer import Closed class Mcli (Cmd): """ Management Command Interpreter """ - prompt = "qpid: " def __init__ (self, dataObject, dispObject): Cmd.__init__ (self) self.dataObject = dataObject self.dispObject = dispObject + self.dataObject.setCli (self) + self.prompt = "qpid: " def emptyline (self): pass + def setPromptMessage (self, p): + if p == None: + self.prompt = "qpid: " + else: + self.prompt = "qpid[%s]: " % p + def do_help (self, data): print "Management Tool for QPID" print |
