Small cleanup of link type names

svn: r15349
This commit is contained in:
Doug Blank
2010-05-07 18:33:44 +00:00
parent 99c4671e3e
commit a7d5470caa
3 changed files with 13 additions and 16 deletions

View File

@@ -50,7 +50,7 @@ def run(database, document, obj):
if int(styledtext_tag.name) == StyledTextTagType.LINK:
if styledtext_tag.value.startswith("gramps://"):
object_class, prop, value = styledtext_tag.value[9:].split("/", 2)
tagtype = _("Gramps")
tagtype = _(object_class)
ref_obj = sdb.get_link(object_class, prop, value)
if ref_obj:
tagvalue = ref_obj