mirror of https://github.com/celery/kombu.git
Bumped version to 0.9.2
This commit is contained in:
parent
bf79a76b34
commit
1329a15fb5
|
@ -2,7 +2,7 @@
|
|||
kombu - AMQP Messaging Framework for Python
|
||||
#############################################
|
||||
|
||||
:Version: 0.9.1
|
||||
:Version: 0.9.2
|
||||
|
||||
**THIS IS A REWRITE OF CARROT**
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"""AMQP Messaging Framework for Python"""
|
||||
VERSION = (0, 9, 1)
|
||||
VERSION = (0, 9, 2)
|
||||
__version__ = ".".join(map(str, VERSION))
|
||||
__author__ = "Ask Solem"
|
||||
__contact__ = "ask@celeryproject.org"
|
||||
|
|
|
@ -50,18 +50,23 @@ class Channel(channel.Channel):
|
|||
def basic_publish(self, message, exchange, routing_key, mandatory=False,
|
||||
immediate=False):
|
||||
message_data, properties = message
|
||||
return channel.Channel.basic_publish(self,
|
||||
exchange,
|
||||
routing_key,
|
||||
message_data,
|
||||
properties,
|
||||
mandatory,
|
||||
immediate)
|
||||
try:
|
||||
return channel.Channel.basic_publish(self,
|
||||
exchange,
|
||||
routing_key,
|
||||
message_data,
|
||||
properties,
|
||||
mandatory,
|
||||
immediate)
|
||||
finally:
|
||||
self.handler.connection.flush_outbound()
|
||||
|
||||
def basic_consume(self, queue, no_ack=False, consumer_tag=None,
|
||||
callback=None, nowait=False):
|
||||
|
||||
def _callback_decode(channel, method, header, body):
|
||||
print("IN CALLBACK DECODE: %r" % (
|
||||
channel, method, header, body))
|
||||
return callback((channel, method, header, body))
|
||||
|
||||
return channel.Channel.basic_consume(self, _callback_decode,
|
||||
|
@ -81,6 +86,7 @@ class Channel(channel.Channel):
|
|||
|
||||
def message_to_python(self, raw_message):
|
||||
"""Convert encoded message body back to a Python value."""
|
||||
print("RAW MESSAGE: %r" % (raw_message, ))
|
||||
return self.Message(channel=self, amqp_message=raw_message)
|
||||
|
||||
def basic_ack(self, delivery_tag):
|
||||
|
|
Loading…
Reference in New Issue