You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Justin Ross (JIRA)" <ji...@apache.org> on 2014/11/20 20:42:36 UTC

[jira] [Created] (QPID-6236) Support integers for durations in python binding

Justin Ross created QPID-6236:
---------------------------------

             Summary: Support integers for durations in python binding
                 Key: QPID-6236
                 URL: https://issues.apache.org/jira/browse/QPID-6236
             Project: Qpid
          Issue Type: Improvement
          Components: Python Client (Wrapped)
            Reporter: Justin Ross


One instance:

{noformat}
from qpid_messaging import *                                                                   
                                                                                               
conn = Connection("localhost:5672")                                                            
conn.open()                                                                                    
                                                                                               
try:                                                                                           
    sess = conn.session()                                                                      
    link = sess.receiver("test")                                                               
                                                                                               
    msg = link.get(1000) # Versus get(Duration(1000))                                                                      
finally:                                                                                       
    conn.close()
{noformat}

{noformat}
[jross@localhost croquet]$ python ~/test.py
Traceback (most recent call last):
  File "/home/jross/test.py", line 10, in <module>
    msg = link.get(1000)
  File "/home/jross/.quirk/output/install/lib64/python2.7/site-packages/qpid_messaging.py", line 422, in get
    def get(self, *args): return _qpid_messaging.Receiver_get(self, *args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'Receiver_get'.
  Possible C/C++ prototypes are:
    qpid::messaging::Receiver::get(qpid::messaging::Message &,qpid::messaging::Duration)
    qpid::messaging::Receiver::get(qpid::messaging::Message &)
    qpid::messaging::Receiver::get(qpid::messaging::Duration)
    qpid::messaging::Receiver::get()
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org