Changed the displayed text of an object in the simple table to gramps_id rather than name of item

svn: r13593
This commit is contained in:
Doug Blank 2009-11-15 22:43:44 +00:00
parent cf9d368a1b
commit fa21027a23

View File

@ -222,7 +222,7 @@ class SimpleTable(object):
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Family', item.handle) link = ('Family', item.handle)
elif isinstance(item, gen.lib.Source): elif isinstance(item, gen.lib.Source):
retval.append(_('Source')) retval.append(item.gramps_id)
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Source', item.handle) link = ('Source', item.handle)
elif isinstance(item, gen.lib.Event): elif isinstance(item, gen.lib.Event):
@ -231,19 +231,19 @@ class SimpleTable(object):
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Event', item.handle) link = ('Event', item.handle)
elif isinstance(item, gen.lib.MediaObject): elif isinstance(item, gen.lib.MediaObject):
retval.append(_('Media')) retval.append(item.gramps_id)
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Media', item.handle) link = ('Media', item.handle)
elif isinstance(item, gen.lib.Place): elif isinstance(item, gen.lib.Place):
retval.append(_('Place')) retval.append(item.gramps_id)
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Place', item.handle) link = ('Place', item.handle)
elif isinstance(item, gen.lib.Repository): elif isinstance(item, gen.lib.Repository):
retval.append(_('Repository')) retval.append(item.gramps_id)
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Repository', item.handle) link = ('Repository', item.handle)
elif isinstance(item, gen.lib.Note): elif isinstance(item, gen.lib.Note):
retval.append(_('Note')) retval.append(item.gramps_id)
if (self.__link_col == col or link is None): if (self.__link_col == col or link is None):
link = ('Note', item.handle) link = ('Note', item.handle)
elif isinstance(item, gen.lib.Date): elif isinstance(item, gen.lib.Date):