#NEWLINE# def populate_models( self ) : #NEWLINE# #INDENT# self . populated = True #NEWLINE# interface = FormProcessorInterface ( domain = self . domain ) #NEWLINE# processor = interface . ledger_processor #NEWLINE# ledger_db = interface . ledger_db #NEWLINE# for helper in self . stock_report_helpers : #NEWLINE# #INDENT# assert ( helper . domain == self . domain ) #NEWLINE# #UNINDENT# normal_helpers = [ srh for srh in interface . stock_report_helpers if ( not srh . deprecated ) ] #NEWLINE# deprecated_helpers = [ srh for srh in self . stock_report_helpers if srh . deprecated ] #NEWLINE# models_result = processor . get_models_to_update ( self . xform . form_id , normal_helpers , deprecated_helpers , ledger_db ) #NEWLINE# ( self . models_to_save , self . models_to_delete ) = models_result