diff options
| author | Chris McDonough <chrism@plope.com> | 2014-01-21 23:22:50 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2014-01-21 23:22:50 -0500 |
| commit | dec681201ec50c261bde022ea09d24f09e3588bd (patch) | |
| tree | b3717a84ca3c3001072ef2e4ab759a4574a7324f /docs/narr/viewconfig.rst | |
| parent | 5c4318abe647b65869ac6dbb5b57cf1088712061 (diff) | |
| parent | df6065fb1c3724649ac6e75cfcabc273ef6fd0d9 (diff) | |
| download | pyramid-dec681201ec50c261bde022ea09d24f09e3588bd.tar.gz pyramid-dec681201ec50c261bde022ea09d24f09e3588bd.tar.bz2 pyramid-dec681201ec50c261bde022ea09d24f09e3588bd.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/viewconfig.rst')
| -rw-r--r-- | docs/narr/viewconfig.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/narr/viewconfig.rst b/docs/narr/viewconfig.rst index e5a2c1ade..84fde3f01 100644 --- a/docs/narr/viewconfig.rst +++ b/docs/narr/viewconfig.rst @@ -217,7 +217,21 @@ Non-Predicate Arguments decorator function will be called with the view callable as a single argument. The view callable it is passed will accept ``(context, request)``. The decorator must return a replacement view callable which - also accepts ``(context, request)``. + also accepts ``(context, request)``. The ``decorator`` may also be an + iterable of decorators, in which case they will be applied one after the + other to the view, in reverse order. For example:: + + @view_config(..., decorator=(decorator2, decorator1)) + def myview(request): + ... + + Is similar to doing:: + + @view_config(...) + @decorator2 + @decorator1 + def myview(request): + ... ``mapper`` A Python object or :term:`dotted Python name` which refers to a :term:`view |
