From cca0d8edb5216ee1c3e4d3a96df9c153292a94aa Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 22 Jun 2009 08:56:22 +0000 Subject: - 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). --- docs/narr/urldispatch.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3