X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/54d1617957cfa3a8c9ffd714ad6c4bef09e727de..b294f0a6d6dee39995ba29fc83f39fd4733b46f3:/philo/middleware.py diff --git a/philo/middleware.py b/philo/middleware.py index 4082d4b..b90067a 100644 --- a/philo/middleware.py +++ b/philo/middleware.py @@ -44,7 +44,7 @@ class LazyNode(object): class RequestNodeMiddleware(object): - """Middleware to process the request's path and attach the closest ancestor node.""" + """Adds a ``node`` attribute, representing the currently-viewed node, to every incoming :class:`HttpRequest` object. This is required by :func:`philo.views.node_view`.""" def process_request(self, request): request.__class__.node = LazyNode()