diff options
author | Matthias Baumgartner <dev@igsor.net> | 2023-03-04 16:01:35 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2023-03-04 16:01:35 +0100 |
commit | 123477ea13f061e4c4898303726811f7965c91dd (patch) | |
tree | 785f475944f5be4ca1e10a0c094fd6ec438f84b1 | |
parent | 01a4c2fc4bcbcce26c29dc9771dedeef5256156b (diff) | |
download | tagit-123477ea13f061e4c4898303726811f7965c91dd.tar.gz tagit-123477ea13f061e4c4898303726811f7965c91dd.tar.bz2 tagit-123477ea13f061e4c4898303726811f7965c91dd.zip |
misc minor fixes
-rw-r--r-- | tagit/actions/__init__.py | 4 | ||||
-rw-r--r-- | tagit/actions/misc.py | 2 | ||||
-rw-r--r-- | tagit/apps/desktop.py | 7 | ||||
-rw-r--r-- | tagit/apps/port_data.py | 2 |
4 files changed, 7 insertions, 8 deletions
diff --git a/tagit/actions/__init__.py b/tagit/actions/__init__.py index bcd71c0..b8b65b8 100644 --- a/tagit/actions/__init__.py +++ b/tagit/actions/__init__.py @@ -79,8 +79,8 @@ class ActionBuilder(BuilderBase): 'ShowConsole': misc.ShowConsole, 'ShowHelp': misc.ShowHelp, 'ShowSettings': misc.ShowSettings, - 'ClipboardCopy': misc.ClipboardCopy, - 'ClipboardPaste': misc.ClipboardPaste, + #'ClipboardCopy': misc.ClipboardCopy, + #'ClipboardPaste': misc.ClipboardPaste, ## objects #'RotateLeft': objects.RotateLeft, #'RotateRight': objects.RotateRight, diff --git a/tagit/actions/misc.py b/tagit/actions/misc.py index b7d0a87..f74e0f9 100644 --- a/tagit/actions/misc.py +++ b/tagit/actions/misc.py @@ -27,7 +27,7 @@ from tagit.widgets import Binding from .action import Action # constants -HELP_URL = 'https://www.igsor.net/projects/tagit/' +HELP_URL = 'https://www.bsfs.io/' # exports __all__ = [] 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) |