Skip to content

Commit

Permalink
Added autodoc for new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Ask Solem committed Oct 26, 2010
1 parent cb7ab92 commit 66242c6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
kombu.transport.memory
kombu.transport.base
kombu.transport.virtual
kombu.transport.virtual.exchange
kombu.transport.virtual.scheduling
kombu.serialization
kombu.compression
kombu.abstract
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/kombu.transport.virtual.exchange.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. contents::
:local:
.. currentmodule:: kombu.transport.virtual.exchange

.. automodule:: kombu.transport.virtual.exchange
:members:
:undoc-members:
4 changes: 0 additions & 4 deletions docs/reference/kombu.transport.virtual.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
==========================================================
Virtual Transport Interface - kombu.transport.virtual
==========================================================

.. contents::
:local:
.. currentmodule:: kombu.transport.virtual
Expand Down
7 changes: 7 additions & 0 deletions docs/reference/kombu.transport.virtual.scheduling.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. contents::
:local:
.. currentmodule:: kombu.transport.scheduling

.. automodule:: kombu.transport.scheduling
:members:
:undoc-members:
3 changes: 1 addition & 2 deletions kombu/transport/virtual/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class DirectExchange(ExchangeType):
"""The `direct` exchange routes based on exact routing keys."""

def lookup(self, table, exchange, routing_key, default):
print("TABLE: %r" % (table, ))
return [queue for rkey, _, queue in table
if rkey == routing_key] or [default]

Expand Down Expand Up @@ -115,7 +114,7 @@ def prepare_bind(self, queue, exchange, routing_key, arguments):
return routing_key, None, queue


#: Map of standard exchange types and their corresponding class
#: Map of standard exchange types and corresponding classes.
STANDARD_EXCHANGE_TYPES = {"direct": DirectExchange,
"topic": TopicExchange,
"fanout": FanoutExchange}

0 comments on commit 66242c6

Please sign in to comment.