summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@apache.org>2015-02-01 10:24:31 +0000
committerPavel Moravec <pmoravec@apache.org>2015-02-01 10:24:31 +0000
commit83c2dd051f1cadf1e8a644a209803f078d01abae (patch)
treeb754145995ffeb4cb0620670e4327cf6a22fe7ad /python
parentf332b33ed3e404b68a6af63318e36eb30d313590 (diff)
downloadqpid-python-83c2dd051f1cadf1e8a644a209803f078d01abae.tar.gz
[QPID-5823]: Python client should create a node with name starting '\#', allow customization of autoDel and excl flags
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1656278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/messaging/driver.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py
index 97bf1b81f2..e7d564f555 100644
--- a/python/qpid/messaging/driver.py
+++ b/python/qpid/messaging/driver.py
@@ -962,8 +962,11 @@ class Engine:
lnk.options['node'] = {}
if 'x-declare' not in lnk.options['node']:
lnk.options['node']['x-declare'] = {}
- lnk.options['node']['x-declare']['auto-delete'] = "True"
- lnk.options['node']['x-declare']['exclusive'] = "True"
+ xdeclare = lnk.options['node']['x-declare']
+ if 'auto-delete' not in xdeclare:
+ xdeclare['auto-delete'] = "True"
+ if 'exclusive' not in xdeclare:
+ xdeclare['exclusive'] = "True"
except address.LexError, e:
return MalformedAddress(text=str(e))
except address.ParseError, e: