#NEWLINE# def setComponentList( self , t ) : #NEWLINE# #INDENT# 'Remove all components, set them to `t` (name, owner)' #NEWLINE# self . dbCheck ( ) #NEWLINE# with self . env . db_transaction as db : #NEWLINE# #INDENT# db ( 'DELETE FROM component' ) #NEWLINE# for ( name , owner ) in db : #NEWLINE# #INDENT# db ( 'INSERT INTO component (name, owner) VALUES (%s, %s)' , ( name , owner ) )