summaryrefslogtreecommitdiff
path: root/cpp/bindings/qpid/python/python.i
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2013-09-18 19:55:14 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2013-09-18 19:55:14 +0000
commit1256b5ead749cffc8aa6e7992b5a839e7fa257ca (patch)
tree7e357cd96374162e110c420e7473f78de455b725 /cpp/bindings/qpid/python/python.i
parentd84cd3ef144090d6849eb25db0f4faca46a8672f (diff)
downloadqpid-python-1256b5ead749cffc8aa6e7992b5a839e7fa257ca.tar.gz
QPID-4952: Renamed the Swig Python binding module to qpid_messaging
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1524550 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/python/python.i')
-rw-r--r--cpp/bindings/qpid/python/python.i13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpp/bindings/qpid/python/python.i b/cpp/bindings/qpid/python/python.i
index 2a3153d2c4..fdc2bbc4f8 100644
--- a/cpp/bindings/qpid/python/python.i
+++ b/cpp/bindings/qpid/python/python.i
@@ -17,7 +17,8 @@
* under the License.
*/
-%module cqpid
+%module qpid_messaging
+
%include "std_string.i"
%include "qpid/swig_python_typemaps.i"
@@ -29,7 +30,7 @@
/*
* Exceptions
*
- * The convention below is that exceptions in _cqpid.so have the same
+ * The convention below is that exceptions in _qpid_messaging.so have the same
* names as in the C++ library. They get renamed to their Python
* equivalents when brought into the Python wrapping
*/
@@ -39,12 +40,12 @@ static PyObject* exception;
%}
%init %{
exception = PyErr_NewException(
- (char *) ("_cqpid." #exception), parent, NULL);
+ (char *) ("_qpid_messaging." #exception), parent, NULL);
Py_INCREF(exception);
PyModule_AddObject(m, #exception, exception);
%}
%pythoncode %{
- exception = _cqpid. ## exception
+ exception = _qpid_messaging. ## exception
%}
%enddef
@@ -176,7 +177,7 @@ QPID_EXCEPTION(UnauthorizedAccess, SessionError)
if v:
clean_opts[k] = v
args.append(clean_opts)
- this = _cqpid.new_Connection(*args)
+ this = _qpid_messaging.new_Connection(*args)
try: self.this.append(this)
except: self.this = this
@@ -341,7 +342,7 @@ QPID_EXCEPTION(UnauthorizedAccess, SessionError)
subject=None, user_id=None, reply_to=None,
correlation_id=None, durable=None, priority=None,
ttl=None, properties=None):
- this = _cqpid.new_Message('')
+ this = _qpid_messaging.new_Message('')
try: self.this.append(this)
except: self.this = this
if not content is None: