9514: DBAPI: duplicated signature for gramps.gen.db.generic.DbGeneric.get_media_from_gramps_id

This commit is contained in:
Doug Blank 2016-06-26 07:55:05 -04:00
parent b74fa4eef7
commit 871955a559

View File

@ -1209,9 +1209,6 @@ class DbGeneric(DbWriteBase, DbReadBase, UpdateCallback, Callback):
handle = str(handle, "utf-8") handle = str(handle, "utf-8")
return Media.create(self._get_raw_media_data(handle)) return Media.create(self._get_raw_media_data(handle))
def get_media_from_gramps_id(self, gramps_id):
return Media.create(self.media_id_map[gramps_id])
def get_tag_from_handle(self, handle): def get_tag_from_handle(self, handle):
if isinstance(handle, bytes): if isinstance(handle, bytes):
handle = str(handle, "utf-8") handle = str(handle, "utf-8")