diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2008-04-04 18:14:42 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2008-04-04 18:14:42 +0000 |
| commit | a2ea9d432dc5713dadd4c710a982cc466de3ea8b (patch) | |
| tree | d7c955359c88b80b24c4f70146309a806511adda /python | |
| parent | 2193d76646028d97b7bfff69335d4239954adbe5 (diff) | |
| download | qpid-python-a2ea9d432dc5713dadd4c710a982cc466de3ea8b.tar.gz | |
Patch from Ted Ross (see QPID-902): This patch contains the following improvements for management:\n1) Schema display cleaned up in the python mgmt-cli\n2) Locking added automatically to management object accessors (manual locking removed from broker/Queue.cpp)\n3) Schemas are now pre-registered with the management agent using a package initializer. This allows management consoles to get schema information for a class even if no instances of the class exist.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@644806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
| -rw-r--r-- | python/mgmt-cli/managementdata.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/python/mgmt-cli/managementdata.py b/python/mgmt-cli/managementdata.py index badd8cd9d1..1524e2c919 100644 --- a/python/mgmt-cli/managementdata.py +++ b/python/mgmt-cli/managementdata.py @@ -451,8 +451,9 @@ class ManagementData: rows = [] sorted = self.schema.keys () sorted.sort () - for className in sorted: - tuple = self.schema[className] + for classKey in sorted: + tuple = self.schema[classKey] + className = classKey[0] + "." + classKey[1] row = (className, len (tuple[0]), len (tuple[1]), len (tuple[2]), len (tuple[3])) rows.append (row) self.disp.table ("Classes in Schema:", |
