Skip to main content

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.

Release files for pyramid-exclusive-request-methods 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyramid-exclusive-request-methods 0.0.7
File Size Uploaded
pyramid_exclusive_request_methods-0.0.7.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyramid-exclusive-request-methods 0.0.7
File Interpreter ABI Platform
pyramid_exclusive_request_methods-0.0.7-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.7 kB

Release files / pyramid_exclusive_request_methods-0.0.7.tar.gz

Download URL pyramid_exclusive_request_methods-0.0.7.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
37ce6c8ed73fbdec523c033163211cf4c753b28b6edc21e493ddc61ec71ec854
BLAKE2b-256 checksum
How to use checksums
9dd0130247cecc3b205b09f7a416cd38825a128c0b56259aba08415cbbe38afd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyramid_exclusive_request_methods-0.0.7-py2.py3-none-any.whl

Download URL pyramid_exclusive_request_methods-0.0.7-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c08d8dcb6b5914854fe5e291718fc1ebc515ad0386ce4bfe355d648b95a7ab4
BLAKE2b-256 checksum
How to use checksums
2bf1529a7b7a72b864e052b096d3808553dec835e66bb13bb16fb03de2b989b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

3 release files

0.0.4

3 release files

0.0.3

3 release files

0.0.2

3 release files

0.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page