Metadata-Version: 2.0
Name: pyramid-exclusive-request-methods
Version: 0.0.6
Summary: UNKNOWN
Home-page: https://github.com/moriyoshi/pyramid_exclusive_request_methods
Author: Moriyoshi Koizumi
Author-email: mozo@mozo.jp
License: MIT
Keywords: pyramid request_method exclusive
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Framework :: Pyramid
Requires-Dist: pyramid (>=1.7)
Requires-Dist: setuptools
Provides-Extra: doc
Requires-Dist: repoze.sphinx.autointerface; extra == 'doc'
Requires-Dist: sphinx; extra == 'doc'

.. contents::

Introduction
============

pyramid_exclusive_request_methods enables one to add a view config whose view handles all the HTTP request methods and responds with *405 Method Not Allowed* for the request methods not explicitly specified in the configuration.

Synopsis::

    from pyramid_exclusive_request_methods import exclusive_view_config

    @view_config(route_name='foo', request_method=['GET'])
    def foo(context, request):
	pass

    @exclusive_view_config(route_name='bar', request_method='GET')
    def bar(context, request):
	pass

    c = Configurator(...)
    c.includeme('pyramid_exclusive_request_methods')



Contributors
============

Moriyoshi Koizumi <mozo@mozo.jp>

Changelog
=========

0.0.0
--------------------

- Initial upload to pypi.


0.0.1
--------------------

- Switch to ``add_exclusive_view`` directive and ``exclusive_view_config`` decorator style, because ``Exclusively`` marker doesn't work as expected due to the limitation of Pyramid.

0.0.2
--------------------

- Bump due to the packaging failure.

0.0.3
--------------------

- Fix a bug that it doesn't work with view classes.

0.0.4
--------------------

- Fix a bug that it doesn't work with view_defaults.

0.0.5
--------------------

- Fix a bug that it doesn't work when the views forms a multiview.



