Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_exclusive_request_methods-0.0.5.tar.gz (5.3 kB view details)

Uploaded Source

Built Distributions

File details

Details for the file pyramid_exclusive_request_methods-0.0.5.tar.gz.

File metadata

File hashes

Hashes for pyramid_exclusive_request_methods-0.0.5.tar.gz
Algorithm Hash digest
SHA256 561371bd23a71591410ff83385e4358dec66c0d38e354a940c596ffb7a81dc22
MD5 2b554c28cc7dc42caad6a84e32ebfb31
BLAKE2b-256 dabfe5aabf961bf43830efbe31082258b8c315a6c18ad9ef2445fd5bf9d81b62

See more details on using hashes here.

File details

Details for the file pyramid_exclusive_request_methods-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_exclusive_request_methods-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 91c4a1e613d23eaed65cc4e5a50eaac0ef265f8063176fa6842bf476de7ff952
MD5 0ee7f87331c1b1cfdd5a4e540a6f066b
BLAKE2b-256 a1524606d0a1a170c8d1b57a5013f6580dfaec3ae1e7d88b44002e4f06b44e4f

See more details on using hashes here.

File details

Details for the file pyramid_exclusive_request_methods-0.0.5-py2-none-any.whl.

File metadata

File hashes

Hashes for pyramid_exclusive_request_methods-0.0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 5b957b7de04c8cd655917bb781b004a26ddc40d280a3ec47bc19104b7f6aa628
MD5 c89851c5597c8b24c31fef82a4b239ae
BLAKE2b-256 137b378af139d503f7fd4a7a78abd315cdd803ffb1cea650e2e937b53a24410f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page