Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Examples of notfound/forbidden_view_config are missing @ in front of the decorators #537

Merged
merged 1 commit into from

2 participants

@hynek

Subjects sums it up pretty well. ;) Just a typo fix.

@mmerickel mmerickel merged commit c9ec6bd into Pylons:master
@mmerickel
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 pyramid/view.py
View
4 pyramid/view.py
@@ -335,7 +335,7 @@ class notfound_view_config(object):
from pyramid.view import notfound_view_config
from pyramid.response import Response
- notfound_view_config()
+ @notfound_view_config()
def notfound(request):
return Response('Not found, dude!', status='404 Not Found')
@@ -409,7 +409,7 @@ class forbidden_view_config(object):
from pyramid.view import forbidden_view_config
from pyramid.response import Response
- forbidden_view_config()
+ @forbidden_view_config()
def notfound(request):
return Response('You are not allowed', status='401 Unauthorized')
Something went wrong with that request. Please try again.