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 | 42ff3ed764be27d4611dce93c1f7fe4805aba533 (patch) | |
| tree | 03de43dc18f6669f8ed504587f098e881c3a231d /qpid/python/commands | |
| parent | c217711e8fc633aa1c6ca1690a8ccc970fe3b693 (diff) | |
| download | qpid-python-42ff3ed764be27d4611dce93c1f7fe4805aba533.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@655619 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/commands')
| -rwxr-xr-x | qpid/python/commands/qpid-tool | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qpid/python/commands/qpid-tool b/qpid/python/commands/qpid-tool index 1aee3a1b7f..9977db3518 100755 --- a/qpid/python/commands/qpid-tool +++ b/qpid/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 |
