Fix of issue 4059, event type begins with non latin char.

svn: r15550
This commit is contained in:
Peter Landgren 2010-06-09 21:04:03 +00:00
parent b6aa4a4d83
commit ee99d280d8

View File

@ -872,7 +872,7 @@ class BasePage(object):
text = '© %(year)d %(person)s' % {
'person' : self.author,
'year' : year}
elif 0 < copyright <= len(_CC):
elif 0 < copyright < len(_CC):
# Note. This is a URL
fname = "/".join(["images", "somerights20.gif"])
url = self.report.build_url_fname(fname, None, up = False)
@ -2559,7 +2559,7 @@ class EventListPage(BasePage):
tcell = Html("td", class_ = "ColumnLetter", inline = True)
trow += tcell
ltr = evt_type[0].capitalize()
ltr = unicode(evt_type)[0].capitalize()
if first_letter:
trow.attr = 'class = "BeginLetter"'
tcell += Html("a", ltr, name = ltr,
@ -5322,7 +5322,7 @@ class NavWebReport(Report):
# Copy the Creative Commons icon if the Creative Commons
# license is requested???
if 0 < self.copyright <= len(_CC):
if 0 < self.copyright < len(_CC):
imgs += ["somerights20.gif"]
# include GRAMPS favicon