Exemplo n.º 1
0
 def internal_parsing_loaded(self, internal_parsing):
     self.internal_parsing = internal_parsing
     gui.g_async(
         lambda: self.journal.all_payees(),
         lambda payees: self.all_payees_loaded(payees),
         self.journal_load_failed,
     )
Exemplo n.º 2
0
 def internal_parsing_loaded(self, internal_parsing):
     self.internal_parsing = internal_parsing
     gui.g_async(
         lambda: self.journal.all_payees(),
         lambda payees: self.all_payees_loaded(payees),
         self.journal_load_failed,
     )
Exemplo n.º 3
0
 def all_payees_loaded(self, payees):
     self.payees = payees
     self.transholder.set_payees_for_completion(self.payees)
     gui.g_async(
         lambda: self.journal.accounts_and_last_commodity_for_account(),
         lambda r: self.accounts_and_last_commodities_loaded(*r),
         self.journal_load_failed,
     )
     if self.status.get_text() == ASYNC_LOAD_MESSAGE:
         self.status.set_text(ASYNC_LOADING_ACCOUNTS_MESSAGE)
Exemplo n.º 4
0
 def all_payees_loaded(self, payees):
     self.payees = payees
     self.transholder.set_payees_for_completion(self.payees)
     gui.g_async(
         lambda: self.journal.accounts_and_last_commodity_for_account(),
         lambda r: self.accounts_and_last_commodities_loaded(*r),
         self.journal_load_failed,
     )
     if self.status.get_text() == ASYNC_LOAD_MESSAGE:
         self.status.set_text(ASYNC_LOADING_ACCOUNTS_MESSAGE)
Exemplo n.º 5
0
 def reload_completion_data(self):
     gui.g_async(
         lambda: self.journal.internal_parsing(),
         lambda payees: self.internal_parsing_loaded(payees),
         self.journal_load_failed,
     )
Exemplo n.º 6
0
 def reload_completion_data(self):
     gui.g_async(
         lambda: self.journal.internal_parsing(),
         lambda payees: self.internal_parsing_loaded(payees),
         self.journal_load_failed,
     )