示例#1
0
 def get_account_totals_from_input_fields(self, input_fields):
     """
         Returns a list with the account name / total pairs,
         only taking into consideration what's in
         the input_fields.
     """
     # TODO: this was for V_rep_cheCK I think, this needs to be fixed!
     # So create a new V_REP_CHECK view!
     values = []
     dba = DatabaseAccess(self.config)
     for account in dba.get_accounts():
         values.append([account, self.get_account_total_from_input_fields(
                 account, input_fields)])
     dba = None
     return values
示例#2
0
 def get_account_totals_from_input_fields(self, input_fields):
     """
         Returns a list with the account name / total pairs,
         only taking into consideration what's in
         the input_fields.
     """
     # TODO: this was for V_rep_cheCK I think, this needs to be fixed!
     # So create a new V_REP_CHECK view!
     values = []
     dba = DatabaseAccess(self.config)
     for account in dba.get_accounts():
         values.append([
             account,
             self.get_account_total_from_input_fields(
                 account, input_fields)
         ])
     dba = None
     return values