GeoView : replace problem in events.

svn: r14380
This commit is contained in:
Serge Noiraud 2010-02-15 08:08:09 +00:00
parent 6918951596
commit 059591a418

View File

@ -268,11 +268,8 @@ def _escape(text):
""" """
return the text with some characters translated : " & return the text with some characters translated : " &
""" """
try:
text = text.replace('&','\\&') text = text.replace('&','\\&')
text = text.replace('"','\\"') text = text.replace('"','\\"')
except: # pylint: disable-msg=W0704
pass # pylint: disable-msg=W0702
return text return text
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -1916,7 +1913,7 @@ class GeoView(HtmlView):
dbstate.db.find_backlink_handles(event.handle) dbstate.db.find_backlink_handles(event.handle)
if ref_type == 'Person' if ref_type == 'Person'
] ]
descr2 = event.get_type() descr2 = "%s" % event.get_type()
if person_list: if person_list:
for person in person_list: for person in person_list:
descr2 = ("%(description)s - %(name)s") % { descr2 = ("%(description)s - %(name)s") % {