Removed duplicate methods

This commit is contained in:
Doug Blank 2015-05-16 09:18:41 -04:00
parent 8a15aaffb7
commit 97fd387c34
2 changed files with 5 additions and 24 deletions

View File

@ -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

View File

@ -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