You can use a decorator that is already provided:
from google.appengine.ext.webapp.util import login_required
class MyHandler(webapp.RequestHandler):
@login_required
def get(self):
...
On Fri, Apr 3, 2009 at 8:02 PM, Ronn Ross <[email protected]> wrote:
> How can I create a function that is run every time a page is loaded without
> adding an auth block in every method? This is so I can authenticate people.
> How would I do something like that in GAE?
>
> >
>
--
Alkis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---