diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 23:03:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-11-27 23:03:56 +0000 |
| commit | f1eff69a4f89905e9b36a83b1825a3a2c4454899 (patch) | |
| tree | 5164a9235608d7e2c1354370eeed0afa88a3997b /docs/middleware.txt | |
| parent | cc3660c07da01965870c3183e740f0694fcf0809 (diff) | |
Updated middleware.txt and url_dispatch.txt docs to reflect [1470] (support for non-named groups in URLconf regexes)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/middleware.txt')
| -rw-r--r-- | docs/middleware.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/middleware.txt b/docs/middleware.txt index 5a01f728d4..b55d8a1696 100644 --- a/docs/middleware.txt +++ b/docs/middleware.txt @@ -125,12 +125,14 @@ the appropriate view; it'll return that ``HttpResponse``. process_view ------------ -Interface: ``process_view(self, request, view_func, param_dict)`` +Interface: ``process_view(self, request, view_func, view_args, view_kwargs)`` ``request`` is an ``HttpRequest`` object. ``view_func`` is the Python function that Django is about to use. (It's the actual function object, not the name of -the function as a string.) ``param_dict`` is a dictionary of keyword arguments -that will be passed to the view -- NOT including the first argument (``request``). +the function as a string.) ``view_args`` is a list of positional arguments that +will be passed to the view, and ``view_kwargs`` is a dictionary of keyword +arguments that will be passed to the view. Neither ``view_args`` nor +``view_kwargs`` include the first view argument (``request``). ``process_view()`` is called just before Django calls the view. It should return either ``None`` or an ``HttpResponse`` object. If it returns ``None``, |
