#NEWLINE# def remove_user( self , user ) : #NEWLINE# #INDENT# session = self . sessionmaker ( ) #NEWLINE# entry = session . query ( User ) . filter ( ( User . lowername == user ) ) . first ( ) #NEWLINE# if ( not entry ) : #NEWLINE# #INDENT# return ( False , 'User not found.' ) #NEWLINE# #UNINDENT# session . delete ( entry ) #NEWLINE# session . commit ( ) #NEWLINE# session . close ( ) #NEWLINE# return ( True , 'Success.' )