#NEWLINE# def post( self ) : #NEWLINE# #INDENT# token = request . form . get ( 'token' ) #NEWLINE# if ( token is not None ) : #NEWLINE# #INDENT# permissions = lookup_permissions ( token ) #NEWLINE# if ( self is not None ) : #NEWLINE# #INDENT# session [ PERMISSIONS ] = permissions #NEWLINE# session [ LOGGEDIN ] = True #NEWLINE# #UNINDENT# #UNINDENT# return redirect_next_referrer ( 'bepasty.index' )