From e61fee82582933342c90d2b32c3e8008e8a134e7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 19 Jan 2010 21:51:45 +0200 Subject: [PATCH] Added some authentication methods. --- scribeengine/controllers/blog.py | 1 + scribeengine/controllers/post.py | 1 + 2 files changed, 2 insertions(+) diff --git a/scribeengine/controllers/blog.py b/scribeengine/controllers/blog.py index 12b34e8..85d7046 100644 --- a/scribeengine/controllers/blog.py +++ b/scribeengine/controllers/blog.py @@ -71,6 +71,7 @@ class BlogController(BaseController): c.page_title = c.post.title return render(u'/blog/view.mako') + @authenticate() def comment_POST(self, id): if not id: h.flash.set_message(u'There was a problem submitting your comment.', u'error') diff --git a/scribeengine/controllers/post.py b/scribeengine/controllers/post.py index cba2b1f..7cd45c1 100644 --- a/scribeengine/controllers/post.py +++ b/scribeengine/controllers/post.py @@ -48,6 +48,7 @@ class PostController(BaseController): c.page_title = 'Edit Post: %s' % c.post.title return render(u'/post/edit.mako') + @authenticate() def edit_POST(self, id=None): url = utils.generate_url(c.form_values[u'title']) if id is None: