X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3d786c6d8c1bd3685ac328c7f4b811c13ea60e1a:/philo/contrib/penfield/middleware.py..61b73fe068172f02d6c47e2b5387161919ec9618:/philo/contrib/winer/middleware.py diff --git a/philo/contrib/penfield/middleware.py b/philo/contrib/winer/middleware.py similarity index 58% rename from philo/contrib/penfield/middleware.py rename to philo/contrib/winer/middleware.py index a0cd649..89a5bd2 100644 --- a/philo/contrib/penfield/middleware.py +++ b/philo/contrib/winer/middleware.py @@ -1,11 +1,11 @@ from django.http import HttpResponse from django.utils.decorators import decorator_from_middleware -from philo.contrib.penfield.exceptions import HttpNotAcceptable +from philo.contrib.winer.exceptions import HttpNotAcceptable class HttpNotAcceptableMiddleware(object): - """Middleware to catch :exc:`~philo.contrib.penfield.exceptions.HttpNotAcceptable` and return an :class:`HttpResponse` with a 406 response code. See :rfc:`2616`.""" + """Middleware to catch :exc:`~philo.contrib.winer.exceptions.HttpNotAcceptable` and return an :class:`HttpResponse` with a 406 response code. See :rfc:`2616`.""" def process_exception(self, request, exception): if isinstance(exception, HttpNotAcceptable): return HttpResponse(status=406)