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:
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