diff options
| author | Michael Merickel <michael@merickel.org> | 2016-02-12 00:18:40 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-02-12 00:18:40 -0600 |
| commit | 81e5989ed5b2bd7ea1a2b843dea9726b253b38ce (patch) | |
| tree | ab732697a6c8ac79770c46748eda2dd59736c650 /docs/tutorials/wiki2/src/authorization | |
| parent | cb5a84802171ed22b67958c7733cc0eddc680d34 (diff) | |
| download | pyramid-81e5989ed5b2bd7ea1a2b843dea9726b253b38ce.tar.gz pyramid-81e5989ed5b2bd7ea1a2b843dea9726b253b38ce.tar.bz2 pyramid-81e5989ed5b2bd7ea1a2b843dea9726b253b38ce.zip | |
create an actual user model to prepare for security
Diffstat (limited to 'docs/tutorials/wiki2/src/authorization')
| -rw-r--r-- | docs/tutorials/wiki2/src/authorization/tutorial/views/default.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/src/authorization/tutorial/views/default.py b/docs/tutorials/wiki2/src/authorization/tutorial/views/default.py index e152e73e0..f74059be0 100644 --- a/docs/tutorials/wiki2/src/authorization/tutorial/views/default.py +++ b/docs/tutorials/wiki2/src/authorization/tutorial/views/default.py @@ -10,6 +10,7 @@ from pyramid.view import view_config from ..models import Page + # regular expression used to find WikiWords wikiwords = re.compile(r"\b([A-Z]\w+[A-Z]+\w+)") @@ -42,7 +43,7 @@ def view_page(request): return dict(page=page, content=content, edit_url=edit_url) @view_config(route_name='add_page', renderer='../templates/edit.jinja2', - permission='edit') + permission='create') def add_page(request): pagename = request.matchdict['pagename'] if 'form.submitted' in request.params: |
