diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-06-22 08:56:22 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-06-22 08:56:22 +0000 |
| commit | cca0d8edb5216ee1c3e4d3a96df9c153292a94aa (patch) | |
| tree | 6ee3a4fc467393f884b5e9a87eac25b53474d989 /docs | |
| parent | 548d30eb11fbd081852139522d789fedc5683bf1 (diff) | |
| download | pyramid-cca0d8edb5216ee1c3e4d3a96df9c153292a94aa.tar.gz pyramid-cca0d8edb5216ee1c3e4d3a96df9c153292a94aa.tar.bz2 pyramid-cca0d8edb5216ee1c3e4d3a96df9c153292a94aa.zip | |
- Add a ``view_for`` attribute to the ``route`` ZCML directive. This
attribute should refer to an interface or a class (ala the ``for``
attribute of the ``view`` ZCML directive).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/urldispatch.rst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index 91063fc26..f62a682c9 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -91,7 +91,15 @@ view The Python dotted-path name to a function that will be used as a view callable when this route matches. - e.g. ``mypackage.views.my_view``. This attribute is required. + e.g. ``mypackage.views.my_view``. + +view_for + + The Python dotted-path name to a class or an interface that the + :term:`context` of the view should match for the view named by the + route to be used. This attribute is only useful if the ``view`` + attribute is used. If this attribute is not specified, the default + (``None``) will be used. permission |
