diff --git a/gramps/plugins/database/dictionarydb.py b/gramps/plugins/database/dictionarydb.py index 44e3721fa..878afa880 100644 --- a/gramps/plugins/database/dictionarydb.py +++ b/gramps/plugins/database/dictionarydb.py @@ -695,10 +695,6 @@ class DictionaryDb(DbWriteBase, DbReadBase, UpdateCallback, Callback): def get_name_group_mapping(self, key): return None - def get_researcher(self): - obj = Researcher() - return obj - def get_person_handles(self, sort_handles=False): ## Fixme: implement sort return self.person_map.keys() @@ -1730,10 +1726,6 @@ class DictionaryDb(DbWriteBase, DbReadBase, UpdateCallback, Callback): if os.path.isfile(filename): importData(self, filename, User()) - def prepare_import(self): - ## FIXME - pass - def redo(self, update_history=True): ## FIXME pass diff --git a/gramps/plugins/database/djangodb.py b/gramps/plugins/database/djangodb.py index cb8f70238..0091d033a 100644 --- a/gramps/plugins/database/djangodb.py +++ b/gramps/plugins/database/djangodb.py @@ -96,8 +96,10 @@ class Table(object): """ return self.funcs["cursor_func"]() - def put(key, data, txn=None): - self[key] = data + def put(self, key, data, txn=None): + ## FIXME: probably needs implementing? + #self[key] = data + pass class Map(dict): """ @@ -196,6 +198,7 @@ class DjangoTxn(DbTxn): def put(self, handle, new_data, txn): """ """ + ## FIXME: probably not correct? txn[handle] = new_data def commit(self): @@ -2053,20 +2056,6 @@ class DbDjango(DbWriteBase, DbReadBase, UpdateCallback, Callback): def get_cursor(self, table, txn=None, update=False, commit=False): pass - def get_from_name_and_handle(self, table_name, handle): - """ - Returns a gen.lib object (or None) given table_name and - handle. - - Examples: - - >>> self.get_from_name_and_handle("Person", "a7ad62365bc652387008") - >>> self.get_from_name_and_handle("Media", "c3434653675bcd736f23") - """ - if table_name in self._tables: - return self._tables[table_name]["handle_func"](handle) - return None - def get_number_of_records(self, table): pass