summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/src/authorization
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-09-13 02:05:24 -0400
committerChris McDonough <chrism@plope.com>2012-09-13 02:05:24 -0400
commitbc70bd1fddd0c3e4ef1a6fb3543f54728af7e749 (patch)
treede350c1dac8c7b612ec20f32759be6dbd9c2092b /docs/tutorials/wiki/src/authorization
parentb72ba1a98ebc6fc6c8d9a11ab1c340b89015e644 (diff)
parent68f83b170a4fca1dddd2f597c64c1f69546b6726 (diff)
downloadpyramid-bc70bd1fddd0c3e4ef1a6fb3543f54728af7e749.tar.gz
pyramid-bc70bd1fddd0c3e4ef1a6fb3543f54728af7e749.tar.bz2
pyramid-bc70bd1fddd0c3e4ef1a6fb3543f54728af7e749.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki/src/authorization')
-rw-r--r--docs/tutorials/wiki/src/authorization/tutorial/views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorials/wiki/src/authorization/tutorial/views.py b/docs/tutorials/wiki/src/authorization/tutorial/views.py
index 21f12b31d..50485d279 100644
--- a/docs/tutorials/wiki/src/authorization/tutorial/views.py
+++ b/docs/tutorials/wiki/src/authorization/tutorial/views.py
@@ -51,17 +51,17 @@ def view_page(context, request):
renderer='templates/edit.pt',
permission='edit')
def add_page(context, request):
- name = request.subpath[0]
+ pagename = request.subpath[0]
if 'form.submitted' in request.params:
body = request.params['body']
page = Page(body)
- page.__name__ = name
+ page.__name__ = pagename
page.__parent__ = context
- context[name] = page
+ context[pagename] = page
return HTTPFound(location = request.resource_url(page))
- save_url = request.resource_url(context, 'add_page', name)
+ save_url = request.resource_url(context, 'add_page', pagename)
page = Page('')
- page.__name__ = name
+ page.__name__ = pagename
page.__parent__ = context
return dict(page = page, save_url = save_url,