#NEWLINE# def requires_login( f ) : #NEWLINE# #INDENT# @ wraps ( f ) #NEWLINE# def decorated_function( * args , **kwargs ) : #NEWLINE# #INDENT# if ( g . user is None ) : #NEWLINE# #INDENT# flash ( 'You need to be signed in for this page.' ) #NEWLINE# return redirect ( url_for ( 'general.login' , next = request . path ) ) #NEWLINE# #UNINDENT# return f ( * args , ** kwargs ) #NEWLINE# #UNINDENT# return f