From 6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 31 May 2009 20:36:53 +0000 Subject: - The ``request_type`` argument of ZCML ``view`` declarations and ``bfg_view`` decorators can now be one of the strings ``GET``, ``POST``, ``PUT``, ``DELETE``, or ``HEAD`` instead of a reference to the respective interface type imported from ``repoze.bfg.interfaces``. --- docs/glossary.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docs/glossary.rst') diff --git a/docs/glossary.rst b/docs/glossary.rst index e6efcc565..500338714 100644 --- a/docs/glossary.rst +++ b/docs/glossary.rst @@ -320,7 +320,12 @@ Glossary that particular interface. Application code can cause requests to possess a different interface by adding the interface to the request object within a :term:`subscriber` to the - ``repoze.bfg.interfaces.INewRequest`` event type. + ``repoze.bfg.interfaces.INewRequest`` event type. String aliases + such as ``GET``, ``POST``, etc. representing HTTP method names may + be used in place of an interface specification in the + ``request_type`` argument passed to view declarations. ``GET`` is + aliased to ``repoze.bfg.interfaces.IGETRequest``, ``POST`` is + aliased to ``repoze.bfg.interfaces.IPOSTRequest``, and so on. repoze.lemonade Zope2 CMF-like `data structures and helper facilities `_ for CA-and-ZODB-based -- cgit v1.2.3