--- a/thirdparty/google_appengine/google/appengine/ext/webapp/util.py Sat Dec 06 14:50:45 2008 +0000
+++ b/thirdparty/google_appengine/google/appengine/ext/webapp/util.py Sat Dec 06 16:52:21 2008 +0000
@@ -34,7 +34,7 @@
def login_required(handler_method):
"""A decorator to require that a user be logged in to access a handler.
- To use it, decorate your get() or post() method like this:
+ To use it, decorate your get() method like this:
@login_required
def get(self):
@@ -42,8 +42,8 @@
self.response.out.write('Hello, ' + user.nickname())
We will redirect to a login page if the user is not logged in. We always
- redirect to the request URI, and Google Accounts only redirects back as a GET request,
- so this should not be used for POSTs.
+ redirect to the request URI, and Google Accounts only redirects back as a GET
+ request, so this should not be used for POSTs.
"""
def check_login(self, *args):
if self.request.method != 'GET':