aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/apps
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-03-04 16:01:35 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-03-04 16:01:35 +0100
commit123477ea13f061e4c4898303726811f7965c91dd (patch)
tree785f475944f5be4ca1e10a0c094fd6ec438f84b1 /tagit/apps
parent01a4c2fc4bcbcce26c29dc9771dedeef5256156b (diff)
downloadtagit-123477ea13f061e4c4898303726811f7965c91dd.tar.gz
tagit-123477ea13f061e4c4898303726811f7965c91dd.tar.bz2
tagit-123477ea13f061e4c4898303726811f7965c91dd.zip
misc minor fixes
Diffstat (limited to 'tagit/apps')
-rw-r--r--tagit/apps/desktop.py7
-rw-r--r--tagit/apps/port_data.py2
2 files changed, 4 insertions, 5 deletions
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)