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.

0.0.6

  • Fix for Pyramid 1.8

0.0.7

  • Fix a bug that it doesn’t work when the different route is specified to each attribute of a view class in the view config.

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

Built Distribution

File details

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

File metadata

File hashes

Hashes for pyramid_exclusive_request_methods-0.0.7.tar.gz
Algorithm Hash digest
SHA256 37ce6c8ed73fbdec523c033163211cf4c753b28b6edc21e493ddc61ec71ec854
MD5 3b03690c906d413190402815723d476e
BLAKE2b-256 9dd0130247cecc3b205b09f7a416cd38825a128c0b56259aba08415cbbe38afd

See more details on using hashes here.

File details

Details for the file pyramid_exclusive_request_methods-0.0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_exclusive_request_methods-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c08d8dcb6b5914854fe5e291718fc1ebc515ad0386ce4bfe355d648b95a7ab4
MD5 635984e2f9109ecbfe13296e454dfc18
BLAKE2b-256 2bf1529a7b7a72b864e052b096d3808553dec835e66bb13bb16fb03de2b989b2

See more details on using hashes here.

Supported by

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