From 490a3957f12439f4dba3207fd949c094ddb42e03 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 4 Dec 2007 17:06:45 +0000 Subject: [PATCH] 2007-12-04 Benny Malengier * src/gen/proxy/proxybase.py: add mediapath get * src/gen/proxy/dbbase.py: add mediapath methods svn: r9442 --- ChangeLog | 4 ++++ src/gen/proxy/dbbase.py | 8 ++++++++ src/gen/proxy/proxybase.py | 5 +++++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4155b1bce..792b3ae81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-12-04 Benny Malengier + * src/gen/proxy/proxybase.py: add mediapath get + * src/gen/proxy/dbbase.py: add mediapath methods + 2007-12-03 Douglas S.Blank * src/plugins/CalculateEstimatedDates.py: Refinements, use results tab * src/PluginUtils/_PluginWindows.py: Tool support for a results tab diff --git a/src/gen/proxy/dbbase.py b/src/gen/proxy/dbbase.py index 08b47e54f..5dd6a92bb 100644 --- a/src/gen/proxy/dbbase.py +++ b/src/gen/proxy/dbbase.py @@ -1085,6 +1085,14 @@ class DbBase: """ raise NotImplementedError + def set_mediapath(self, path): + """sets the default media path for database, path should be utf-8""" + raise NotImplementedError + + def get_mediapath(self): + """returns the default media path of the database""" + raise NotImplementedError + def set_column_order(self, col_list, name): raise NotImplementedError diff --git a/src/gen/proxy/proxybase.py b/src/gen/proxy/proxybase.py index f30dabaa5..29971d7a8 100644 --- a/src/gen/proxy/proxybase.py +++ b/src/gen/proxy/proxybase.py @@ -47,6 +47,7 @@ class ProxyDbBase(DbBase): self.db = db self.name_formats = db.name_formats self.bookmarks = db.bookmarks + self.metadata = db.metadata self.family_bookmarks = db.family_bookmarks self.event_bookmarks = db.event_bookmarks self.place_bookmarks = db.place_bookmarks @@ -266,6 +267,10 @@ class ProxyDbBase(DbBase): """ raise NotImplementedError + def get_mediapath(self): + """returns the default media path of the database""" + return self.db.get_mediapath() + def set_column_order(self, col_list, name): raise NotImplementedError