diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-05-31 20:36:53 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-05-31 20:36:53 +0000 |
| commit | 6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b (patch) | |
| tree | 184f1553b041226cac7e8a83b71578e556e15874 /docs/glossary.rst | |
| parent | 8c3b807625d0480c7ce934bf7daf3437328346bf (diff) | |
| download | pyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.tar.gz pyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.tar.bz2 pyramid-6c7b9a1534d35aeb07f4a9a59b8e15633f6b6b6b.zip | |
- 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``.
Diffstat (limited to 'docs/glossary.rst')
| -rw-r--r-- | docs/glossary.rst | 7 |
1 files changed, 6 insertions, 1 deletions
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 <http://docs.repoze.org/lemonade>`_ for CA-and-ZODB-based |
