Spec file update, GEDCOM note work around for FTM bug

svn: r942
This commit is contained in:
Don Allingham 2002-04-24 12:59:15 +00:00
parent 41385c0716
commit 279b84e68a
5 changed files with 11 additions and 4 deletions

View File

@ -15,7 +15,7 @@ URL: http://gramps.sourceforge.net
Requires: python >= 1.5.2
Requires: pygnome >= 1.0.53
Requires: pygnome-libglade
Requires: _gladegnomemodule.so
Requires: pyexpat.so
%description

View File

@ -462,6 +462,10 @@ class Note:
"""return the note contents"""
return self.text
def append(self,text):
"""adds the text to the note's contents"""
return self.text + text
class Photo(SourceNote):
"""Containter for information about an image file, including location,
description and privacy"""

View File

@ -13,7 +13,7 @@ if os.environ.has_key("GRAMPSI18N"):
loc = os.environ["GRAMPSI18N"]
else:
loc = "locale"
intl.textdomain("gramps")
intl.bindtextdomain("gramps",loc)
locale.setlocale(locale.LC_NUMERIC,"C")

View File

@ -47,6 +47,9 @@ try:
def bindtextdomain(s,x):
return
except:
import traceback
traceback.print_exc()
def gettext(s):
return s

View File

@ -397,9 +397,9 @@ class GedcomParser:
self.nmap[matches[1]] = noteobj
text = matches[2][4:]
if text == "":
noteobj.set(self.parse_note_continue(1))
noteobj.append(self.parse_note_continue(1))
else:
noteobj.set(text + self.parse_note_continue(1))
noteobj.append(text + self.parse_note_continue(1))
self.parse_note_data(1)
elif matches[2] == "OBJE":
self.ignore_sub_junk(1)