From ff6b8d2c86461b65ce18b28d83e8bcdd1bbe3d4c Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Sat, 29 Aug 2009 05:11:23 +0000 Subject: [PATCH] Patch from Peter Lundgren. fixes Repository type translation error. svn: r13130 --- src/plugins/webreport/NarrativeWeb.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 37973271a..cd3b7c269 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -70,6 +70,7 @@ try: except ImportError: pyexiftaglib = False +from gen.lib.repotype import RepositoryType #------------------------------------------------------------------------ # # Set up logging @@ -4428,6 +4429,11 @@ class RepositoryListPage(BasePage): # repository type rtype = repo.type.xml_str() + for xtype in RepositoryType._DATAMAP: + if rtype == xtype[2]: + rtype = xtype[1] + break + if rtype: tcell = Html('td', rtype, class_='ColumnType', inline=True) trow += tcell