* src/GrampsDb/_ReadGedcom.py: handle missing place in LDS ord

svn: r7921
This commit is contained in:
Don Allingham 2007-01-17 05:18:47 +00:00
parent 38cff6178c
commit 6a700dd48d
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
2007-01-16 Don Allingham <don@gramps-project.org> 2007-01-16 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_ReadGedcom.py: handle missing place in LDS ord
* src/DataViews/_PersonView.py: optimization * src/DataViews/_PersonView.py: optimization
* src/ViewManager.py: remove double build call * src/ViewManager.py: remove double build call
* src/DisplayModels/_PeopleModel.py: optimization * src/DisplayModels/_PeopleModel.py: optimization

View File

@ -1827,12 +1827,14 @@ class GedcomParser(UpdateCallback):
def parse_ord(self,lds_ord,level): def parse_ord(self,lds_ord,level):
note = "" note = ""
pf = _place_field pf = _place_field
place = None
while True: while True:
matches = self.get_next() matches = self.get_next()
if self.level_is_finished(matches, level): if self.level_is_finished(matches, level):
load_place_values(place,place.get_title(),pf) if place:
load_place_values(place,place.get_title(),pf)
break break
elif matches[1] == TOKEN_TEMP: elif matches[1] == TOKEN_TEMP:
value = self.extract_temple(matches) value = self.extract_temple(matches)