Author: pmoravec
Date: Sun Feb 1 10:24:31 2015
New Revision: 1656278
URL: http://svn.apache.org/r1656278
Log:
[QPID-5823]: Python client should create a node with name starting '\#', allow
customization of autoDel and excl flags
Modified:
qpid/trunk/qpid/python/qpid/messaging/driver.py
Modified: qpid/trunk/qpid/python/qpid/messaging/driver.py
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/messaging/driver.py?rev=1656278&r1=1656277&r2=1656278&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/messaging/driver.py (original)
+++ qpid/trunk/qpid/python/qpid/messaging/driver.py Sun Feb 1 10:24:31 2015
@@ -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:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]