save read housings, and display new ones with a blue background

This commit is contained in:
Romain Bignon 2012-02-18 11:58:28 +01:00
commit 379083d2d7
2 changed files with 15 additions and 3 deletions

View file

@ -31,11 +31,13 @@ class QFlatBoob(QtApplication):
DESCRIPTION = 'Qt application to find housings.'
CAPS = ICapHousing
CONFIG = {'queries': {}}
STORAGE = {'bookmarks': [], 'read': []}
def main(self, argv):
self.load_backends(ICapHousing)
self.create_storage()
self.load_config(klass=YamlConfig)
self.main_window = MainWindow(self.config, self.weboob)
self.main_window = MainWindow(self.config, self.storage, self.weboob)
self.main_window.show()
return self.weboob.loop()