Skip to content

Commit

Permalink
We don't support predicates, actually, and the way the publisher work…
Browse files Browse the repository at this point in the history
…s is almost trivial. Drop paragraph entirely.
  • Loading branch information
malthe committed Mar 15, 2013
1 parent ffe6766 commit f3225df
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions otto/docs/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,27 +158,6 @@ other.
Complex systems can use the object mapper abstraction to integrate
security and other framework into the URL dispatch routine.

How it works
------------

The publisher is given an HTTP environment and returns an HTTP
response. It always returns a response.

When a request comes in, the publisher matches the ``PATH_INFO``
variable with the routing table to find exactly one route and extracts
the :term:`match dict`. In case no route matches, a ``404 Not Found``
response is returned. If the route contains an anonymous asterisk, a
:term:`context` object is resolved from the path represented by the
asterisk using an object mapper -- see :ref:`mapping <mapping>`. In
any case, the publisher invokes the first valid controller, passing
the match dict as keyword arguments.

request ⇾ *routing table* ⇾ route ⇾ *controllers* ⇾ controller

There can be several controllers defined for a single route; each will
then specify one or more :ref:`predicates <reference>`. Like routes,
controllers are looked up in order of definition. The first valid
controller is used.

Example
-------
Expand Down

0 comments on commit f3225df

Please sign in to comment.