diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-09-14 08:15:01 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-09-14 08:15:01 +0000 |
| commit | a37220b84dee4cc8b1b12f34643ce97dad89ffe1 (patch) | |
| tree | 0286c73411245e55cf28879e593c68ba6536f57c /docs | |
| parent | 032f080026c6d298d594e4a6781b3f91af066676 (diff) | |
| download | pyramid-a37220b84dee4cc8b1b12f34643ce97dad89ffe1.tar.gz pyramid-a37220b84dee4cc8b1b12f34643ce97dad89ffe1.tar.bz2 pyramid-a37220b84dee4cc8b1b12f34643ce97dad89ffe1.zip | |
- The ``view`` attribute of the ``view`` ZCML directive is no longer
required if the ZCML directive has a ``template`` attribute.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/views.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/narr/views.rst b/docs/narr/views.rst index 2efe84fac..3916e6aac 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -227,7 +227,11 @@ The ``view`` ZCML directive has these possible attributes: view - The Python dotted-path name to the view callable. + The Python dotted-path name to the view callable. This attribute is + required unless a ``template`` attribute also exists. If a + ``template`` attribute exists on the directive, this attribute + defaults to a view that returns an empty dictionary (see + :ref:`views_with_templates`). for |
