#NEWLINE# def user_update_enabled( request , user , enabled ) : #NEWLINE# #INDENT# manager = keystoneclient ( request , admin = True ) . users #NEWLINE# if ( VERSIONS . active < 3 ) : #NEWLINE# #INDENT# return manager . update_enabled ( user , enabled ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return manager . update ( user , enabled = enabled )