Patch from Peter Lundgren. fixes Repository type translation error.

svn: r13130
This commit is contained in:
Rob G. Healey 2009-08-29 05:11:23 +00:00
parent 370efe7566
commit ff6b8d2c86

View File

@ -70,6 +70,7 @@ try:
except ImportError: except ImportError:
pyexiftaglib = False pyexiftaglib = False
from gen.lib.repotype import RepositoryType
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
# Set up logging # Set up logging
@ -4428,6 +4429,11 @@ class RepositoryListPage(BasePage):
# repository type # repository type
rtype = repo.type.xml_str() rtype = repo.type.xml_str()
for xtype in RepositoryType._DATAMAP:
if rtype == xtype[2]:
rtype = xtype[1]
break
if rtype: if rtype:
tcell = Html('td', rtype, class_='ColumnType', inline=True) tcell = Html('td', rtype, class_='ColumnType', inline=True)
trow += tcell trow += tcell