def load_and_parse_history(self): from softwarecenter.db.history import get_pkg_history self.history = get_pkg_history() # FIXME: a signal from AptHistory is nicer while not self.history.history_ready: while Gtk.events_pending(): Gtk.main_iteration() self.parse_history() self.history.set_on_update(self.parse_history)
def installation_date(self): from softwarecenter.db.history import get_pkg_history self._history = get_pkg_history() return self._history.get_installed_date(self.pkgname)