From c00ffbcf148400b36f2bfebc82d652459bb798e1 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Tue, 22 Dec 2009 22:00:24 +0000 Subject: [PATCH] Remove references to import pyexiv2, and fixed RepositoryTypes. svn: r13887 --- src/plugins/webreport/NarrativeWeb.py | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index e136ebc5b..77ad65688 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -77,7 +77,6 @@ log = logging.getLogger(".WebPage") # GRAMPS module #------------------------------------------------------------------------ import gen.lib -from gen.lib.repotype import RepositoryType from gen.lib import UrlType, EventType, Person, date, Date, ChildRefType, \ FamilyRelType, NameType, Name from gen.lib.date import make_gedcom_date @@ -109,13 +108,6 @@ from libhtml import Html # src/plugins/lib/libhtmlbackend.py from libhtmlbackend import HtmlBackend -# if the pyexiv2 library is installed, look for libexiftags -# from src/plugins/lib/libexiftags.py -try: - from libexiftags import ExifKeyTags -except ImportError: - pass - #------------------------------------------------------------------------ # # constants @@ -4620,15 +4612,8 @@ class RepositoryListPage(BasePage): trow += Html("td", index + 1, class_ = "ColumnRowLabel", inline = True) # repository type - rtype = repo.type.xml_str() - tcell = Html("td", class_ = "ColumnType", inline = True) - trow += tcell - - for xtype in RepositoryType._DATAMAP: - if rtype == xtype[2]: - rtype = xtype[1] - break - tcell += rtype or " " + rtype = str(repo.type) + trow += Html("td", rtype, class_ = "ColumnType", inline = True) # repository name and hyperlink repo_title = html_escape(repo.name)