Remove references to import pyexiv2, and fixed RepositoryTypes.
svn: r13887
This commit is contained in:
parent
db22a53da8
commit
c00ffbcf14
@ -77,7 +77,6 @@ log = logging.getLogger(".WebPage")
|
|||||||
# GRAMPS module
|
# GRAMPS module
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import gen.lib
|
import gen.lib
|
||||||
from gen.lib.repotype import RepositoryType
|
|
||||||
from gen.lib import UrlType, EventType, Person, date, Date, ChildRefType, \
|
from gen.lib import UrlType, EventType, Person, date, Date, ChildRefType, \
|
||||||
FamilyRelType, NameType, Name
|
FamilyRelType, NameType, Name
|
||||||
from gen.lib.date import make_gedcom_date
|
from gen.lib.date import make_gedcom_date
|
||||||
@ -109,13 +108,6 @@ from libhtml import Html
|
|||||||
# src/plugins/lib/libhtmlbackend.py
|
# src/plugins/lib/libhtmlbackend.py
|
||||||
from libhtmlbackend import HtmlBackend
|
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
|
# constants
|
||||||
@ -4620,15 +4612,8 @@ class RepositoryListPage(BasePage):
|
|||||||
trow += Html("td", index + 1, class_ = "ColumnRowLabel", inline = True)
|
trow += Html("td", index + 1, class_ = "ColumnRowLabel", inline = True)
|
||||||
|
|
||||||
# repository type
|
# repository type
|
||||||
rtype = repo.type.xml_str()
|
rtype = str(repo.type)
|
||||||
tcell = Html("td", class_ = "ColumnType", inline = True)
|
trow += Html("td", rtype, class_ = "ColumnType", inline = True)
|
||||||
trow += tcell
|
|
||||||
|
|
||||||
for xtype in RepositoryType._DATAMAP:
|
|
||||||
if rtype == xtype[2]:
|
|
||||||
rtype = xtype[1]
|
|
||||||
break
|
|
||||||
tcell += rtype or " "
|
|
||||||
|
|
||||||
# repository name and hyperlink
|
# repository name and hyperlink
|
||||||
repo_title = html_escape(repo.name)
|
repo_title = html_escape(repo.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user