#NEWLINE# def drop_models( self , bdb , generator_id , modelnos = None ) : #NEWLINE# #INDENT# with bdb . savepoint ( ) : #NEWLINE# #INDENT# if ( modelnos is None ) : #NEWLINE# #INDENT# delete_models_sql = '\n                    DELETE FROM bayesdb_nig_normal_model\n                        WHERE generator_id = ?\n                ' #NEWLINE# bdb . sql_execute ( delete_models_sql , ( generator_id , ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# delete_models_sql = '\n                    DELETE FROM bayesdb_nig_normal_model\n                        WHERE generator_id = ? AND modelno = ?\n                ' #NEWLINE# for modelno in modelnos : #NEWLINE# #INDENT# bdb . sql_execute ( delete_models_sql , ( modelno , modelno ) )