#NEWLINE# def save_slice( self , slc ) : #NEWLINE# #INDENT# session = db . session ( ) #NEWLINE# msg = 'Slice [{}] has been saved' . format ( slc . slice_name ) #NEWLINE# session . add ( self ) #NEWLINE# session . commit ( ) #NEWLINE# flash ( msg , 'info' )