Basically what I am trying to achieve is check if user is logged in and if he’s not he shall be redirected to the /somepage. I am trying to make it by creating a class that extends webapp.RequestHandler and later in code just extend that class.
(something like beforeFilter in cakephp)
If something isn’t clear I’ll explain it :).
Basically what I am trying to achieve is check if user is logged in
Share
use decorators.
here the documentation:
http://www.python.org/dev/peps/pep-0318/
here an example to remove slashes on the request path:
and you use it like: