summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/src/views
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-11-25 12:26:58 -0800
committerSteve Piercy <web@stevepiercy.com>2018-11-25 12:26:58 -0800
commit622a98df9f46805617481c573073901493e601c4 (patch)
tree2acc0ea783f63505e9787e20c3eda283f8a81a86 /docs/tutorials/wiki/src/views
parent097381f8e8fa112bfb859fcf4938611b94a498bf (diff)
downloadpyramid-622a98df9f46805617481c573073901493e601c4.tar.gz
pyramid-622a98df9f46805617481c573073901493e601c4.tar.bz2
pyramid-622a98df9f46805617481c573073901493e601c4.zip
Use path for pagename, not subpath
Diffstat (limited to 'docs/tutorials/wiki/src/views')
-rw-r--r--docs/tutorials/wiki/src/views/tutorial/views/notfound.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki/src/views/tutorial/views/notfound.py b/docs/tutorials/wiki/src/views/tutorial/views/notfound.py
index 214ec810e..d44b4d0e6 100644
--- a/docs/tutorials/wiki/src/views/tutorial/views/notfound.py
+++ b/docs/tutorials/wiki/src/views/tutorial/views/notfound.py
@@ -6,7 +6,7 @@ from ..models import Page
@notfound_view_config(renderer='../templates/404.pt')
def notfound_view(request):
request.response.status = 404
- pagename = request.subpath
+ pagename = request.path
page = Page(pagename)
page.__name__ = pagename
return dict(page=page)