diff options
author | Ask Solem <askh@opera.com> | 2010-10-27 09:17:37 +0200 |
---|---|---|
committer | Ask Solem <askh@opera.com> | 2010-10-27 09:17:37 +0200 |
commit | fb1e7e0d256a6772c91fc9a184a507861e7f20e2 (patch) | |
tree | 4d60b95254bb683c3eac4a8aacaca91d0acfb758 /kombu/transport/virtual/exchange.py | |
parent | 66242c6f9f795f0cf088d6a53069d84a42b2a74b (diff) | |
download | kombu-fb1e7e0d256a6772c91fc9a184a507861e7f20e2.tar.gz |
Improved reference documentation
Diffstat (limited to 'kombu/transport/virtual/exchange.py')
-rw-r--r-- | kombu/transport/virtual/exchange.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/kombu/transport/virtual/exchange.py b/kombu/transport/virtual/exchange.py index 975460c5..e3c1f836 100644 --- a/kombu/transport/virtual/exchange.py +++ b/kombu/transport/virtual/exchange.py @@ -1,13 +1,12 @@ """ - kombu.transport.virtual.exchange - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +kombu.transport.virtual.exchange +================================ - Implementations of the standard exchanges defined - by the AMQ protocol. Currently excluding the `headers` - exchange. +Implementations of the standard exchanges defined +by the AMQ protocol (excluding the `headers` exchange). - :copyright: (c) 2009 - 2010 by Ask Solem. - :license: BSD, see LICENSE for more details. +:copyright: (c) 2009 - 2010 by Ask Solem. +:license: BSD, see LICENSE for more details. """ import re @@ -37,7 +36,7 @@ class ExchangeType(object): raise NotImplementedError("subclass responsibility") def prepare_bind(self, queue, exchange, routing_key, arguments): - """:returns: ``(routing_key, regex, queue)`` tuple to store + """:returns: `(routing_key, regex, queue)` tuple to store for bindings to this exchange.""" return routing_key, None, queue @@ -63,7 +62,7 @@ class DirectExchange(ExchangeType): class TopicExchange(ExchangeType): - """The `topic` exchanges routes based on words separated by dots, and the + """The `topic` exchanges routes based on words separated by dots, and wildcard characters `*` (any single word), and `#` (one or more words).""" #: map of wildcard to regex conversions |