def check_login(self, *args): user = get_current_user() if not user: return self.redirect('/login') else: handler_method(self, *args)
def check_login(self, *args): user = get_current_user() if not user: return self.redirect(ret_url) handler_method(self, user, *args)