pecan.routing – Pecan Routing

The pecan.routing module is the basis for all object-dispatch routing in Pecan.

pecan.routing.lookup_controller(obj, remainder, request=None)

Traverses the requested url path and returns the appropriate controller object, including default routes.

Handles common errors gracefully.

pecan.routing.find_object(obj, remainder, notfound_handlers, request)

‘Walks’ the url path in search of an action for which a controller is implemented and returns that controller object along with what’s left of the remainder.

Previous topic

pecan.rest – Pecan REST Controller

Next topic

pecan.secure – Pecan Secure Controllers

This Page