#NEWLINE# def login_required( obj ) : #NEWLINE# #INDENT# '\n    Requires that the user be logged in order to gain access to the resource\n    at the specified the URI.\n    ' #NEWLINE# decorator = request_passes_test ( ( lambda r , * args , **kwargs : r . user . is_authenticated ( ) ) ) #NEWLINE# return wrap_object ( obj , decorator )