* src/GrampsCfg.py: change the default prefixes so that they

sort nicely numerically.
* src/plugins/ReadGedcom.py: handle eazytree oddities.


svn: r2528
This commit is contained in:
Don Allingham 2003-12-16 04:04:08 +00:00
parent 1cc61c596b
commit 5f9da375ad
2 changed files with 12 additions and 11 deletions

View File

@ -128,11 +128,11 @@ panellist = [
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
iprefix = "I" iprefix = "I%04d"
oprefix = "O" oprefix = "O%04d"
sprefix = "S" sprefix = "S%04d"
pprefix = "P" pprefix = "P%04d"
fprefix = "F" fprefix = "F%04d"
autoload = 0 autoload = 0
autosave_int = 0 autosave_int = 0
uselds = 0 uselds = 0

View File

@ -337,9 +337,6 @@ class GedcomParser:
next_line = self.f.readline() next_line = self.f.readline()
self.text = string.translate(next_line.strip(),self.trans,self.delc) self.text = string.translate(next_line.strip(),self.trans,self.delc)
if not self.text:
raise Errors.GedcomError(_("GEDCOM file ended unexpectedly"))
try: try:
self.text = self.cnv(self.text) self.text = self.cnv(self.text)
except: except:
@ -354,6 +351,9 @@ class GedcomParser:
else: else:
self.groups = (int(l[0]),l[1],l[2]) self.groups = (int(l[0]),l[1],l[2])
except: except:
if self.text == "":
msg = _("Warning: line %d was blank, so it was ignored.\n") % self.index
else:
msg = _("Warning: line %d was not understood, so it was ignored.") % self.index msg = _("Warning: line %d was not understood, so it was ignored.") % self.index
msg = "%s\n\t%s\n" % (msg,self.text) msg = "%s\n\t%s\n" % (msg,self.text)
self.errmsg(msg) self.errmsg(msg)
@ -518,7 +518,8 @@ class GedcomParser:
noteobj = RelLib.Note() noteobj = RelLib.Note()
self.nmap[matches[1]] = noteobj self.nmap[matches[1]] = noteobj
text = matches[2][4:] text = matches[2][4:]
noteobj.append(text + self.parse_continue_data(1)) # noteobj.append(text + self.parse_continue_data(1))
noteobj.append(text + self.parse_note_continue(1))
self.parse_note_data(1) self.parse_note_data(1)
elif matches[1] == "TRLR": elif matches[1] == "TRLR":
self.backup() self.backup()