From ae84c6b33efdcf37f453967384cacc264ec877d9 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 31 May 2009 21:47:24 +0000 Subject: - The ``route`` ZCML directive now accepts ``request_type`` as an alias for its ``condition_method`` argument for symmetry with the ``view`` directive. --- docs/narr/urldispatch.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'docs/narr/urldispatch.rst') diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index d43a344f2..f19faa031 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -122,10 +122,17 @@ filter A Python dotted-path name to a Routes `filter function `_. -condition_method +request_type The name of the HTTP method used as the Routes `condition method - `_. + `_. A string, + e.g. ``GET`` or ``POST``. Note that :term:`interface` references + don't work here as they do in the ``view`` decorator or ``bfg_view`` + ZCML directive. Only strings representing an HTTP method will work. + +condition_method + + An alias for the ``request_type`` attribute. condition_subdomain -- cgit v1.2.3