def _auth_method_user(cls): request.uid = request.session.uid if not request.uid: raise http.SessionExpiredException("Session expired")
def _auth_method_user(cls): if request.env.uid is None: raise http.SessionExpiredException("Session expired")