Set author for source on gedcom import
svn: r6351
This commit is contained in:
parent
1ca0d3d9e1
commit
943f01ff9f
@ -1,3 +1,7 @@
|
||||
2006-04-17 Don Allingham <don@gramps-project.org>
|
||||
* src/GrampsDb/_ReadGedcom.py: set author properly for GEDCOM name
|
||||
on default source
|
||||
|
||||
2006-04-16 Brian Matherly <pez4brian@users.sourceforge.net>
|
||||
* src/plugins/DescendReport.py: Don't sort children (Bug #1453010)
|
||||
|
||||
|
@ -1766,7 +1766,9 @@ class GedcomParser:
|
||||
self.def_src.set_title(_("Import from %s") % filename)
|
||||
elif matches[1] == TOKEN_COPR:
|
||||
self.def_src.set_publication_info(matches[2])
|
||||
elif matches[1] in (TOKEN_CORP,TOKEN_DATA,TOKEN_SUBM,TOKEN_SUBN,TOKEN_LANG):
|
||||
elif matches[1] == TOKEN_SUBM:
|
||||
self.parse_subm(1)
|
||||
elif matches[1] in (TOKEN_CORP,TOKEN_DATA,TOKEN_SUBN,TOKEN_LANG):
|
||||
self.ignore_sub_junk(2)
|
||||
elif matches[1] == TOKEN_DEST:
|
||||
if genby == "GRAMPS":
|
||||
@ -1795,6 +1797,18 @@ class GedcomParser:
|
||||
else:
|
||||
self.barf(2)
|
||||
|
||||
def parse_subm(self, level):
|
||||
while True:
|
||||
matches = self.get_next()
|
||||
|
||||
if int(matches[0]) < level:
|
||||
self.backup()
|
||||
return
|
||||
elif matches[1] == TOKEN_NAME:
|
||||
self.def_src.set_author(matches[2])
|
||||
else:
|
||||
self.ignore_sub_junk(2)
|
||||
|
||||
def parse_ftw_schema(self,level):
|
||||
while True:
|
||||
matches = self.get_next()
|
||||
|
Loading…
Reference in New Issue
Block a user