From 123477ea13f061e4c4898303726811f7965c91dd Mon Sep 17 00:00:00 2001 From: Matthias Baumgartner Date: Sat, 4 Mar 2023 16:01:35 +0100 Subject: misc minor fixes --- tagit/apps/desktop.py | 7 ++----- tagit/apps/port_data.py | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'tagit/apps') diff --git a/tagit/apps/desktop.py b/tagit/apps/desktop.py index d934649..b64bf7e 100644 --- a/tagit/apps/desktop.py +++ b/tagit/apps/desktop.py @@ -35,7 +35,7 @@ class TagitApp(App): self.settings_cls = SettingsWithSidebar # set title - self.title = 'tagit v2.0' + self.title = 'tagit v0.23.03' # load config from tagit.config.loader import load_settings, TAGITRC @@ -53,15 +53,12 @@ class TagitApp(App): store.migrate(required_schema | store.schema) # create widget - return desktop.MainWindow(cfg, store, None) # FIXME: expects cfg, stor, log arguments + return desktop.MainWindow(cfg, store, None) # FIXME: mb/port: expects log arguments def on_start(self): # trigger startup operations self.root.on_startup() - # FIXME: mb/port - #def on_stop(self): - # self.root.session.storage.close() def main(argv): """Start the tagit GUI. Opens a window to browse images.""" diff --git a/tagit/apps/port_data.py b/tagit/apps/port_data.py index 11faaef..2e4161b 100644 --- a/tagit/apps/port_data.py +++ b/tagit/apps/port_data.py @@ -9,6 +9,8 @@ from tagit.utils.bsfs import URI # load data def add_port_data(store): + with open(os.path.join(os.path.dirname(__file__), 'port-schema.pkl'), 'rb') as ifile: + store._backend._schema = pickle.load(ifile) with open(os.path.join(os.path.dirname(__file__), 'port-data.pkl'), 'rb') as ifile: for triple in pickle.load(ifile): store._backend._graph.add(triple) -- cgit v1.2.3