diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2008-04-08 21:51:17 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2008-04-08 21:51:17 +0000 |
| commit | 46442dcd6582b39d57ddf3388921f87b0c533ce7 (patch) | |
| tree | ea284161d3d25b89ef11013e858ae603e8806449 /python/qpid | |
| parent | ae65a6dc955b727f6b092d50831467d564a00c37 (diff) | |
| download | qpid-python-46442dcd6582b39d57ddf3388921f87b0c533ce7.tar.gz | |
QPID-908 from tross
+ corrected spec location -s.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@646093 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid')
| -rw-r--r-- | python/qpid/management.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/qpid/management.py b/python/qpid/management.py index b08566ee4f..d2dcacd62a 100644 --- a/python/qpid/management.py +++ b/python/qpid/management.py @@ -22,7 +22,7 @@ Management API for Qpid """ import qpid -import base64 +import struct import socket from threading import Thread from message import Message @@ -89,8 +89,8 @@ class managementChannel: to participate in the management protocol. """ response = ch.session_open (detached_lifetime=300) self.sessionId = response.session_id - self.topicName = "mgmt-" + base64.urlsafe_b64encode (response.session_id) - self.replyName = "reply-" + base64.urlsafe_b64encode (response.session_id) + self.topicName = "mgmt-%08x-%04x-%04x-%04x-%04x%08x" % struct.unpack ("!LHHHHL", response.session_id) + self.replyName = "repl-%08x-%04x-%04x-%04x-%04x%08x" % struct.unpack ("!LHHHHL", response.session_id) self.qpidChannel = ch self.tcb = topicCb self.rcb = replyCb |
