Assign a title to a place that does not have a title.

svn: r798
This commit is contained in:
Don Allingham 2002-02-24 21:43:07 +00:00
parent 37b615dc75
commit 1a052554bd

View File

@ -151,7 +151,10 @@ class GrampsParser:
def start_placeobj(self,attrs): def start_placeobj(self,attrs):
self.placeobj = self.db.findPlaceNoMap(u2l(attrs['id'])) self.placeobj = self.db.findPlaceNoMap(u2l(attrs['id']))
self.placeobj.set_title(u2l(attrs['title'])) title = u2l(attrs['title'])
if title == "":
title = u2l(attrs['id'])
self.placeobj.set_title(title)
self.locations = 0 self.locations = 0
if self.num_places > 0: if self.num_places > 0:
if self.callback != None and self.count % self.increment == 0: if self.callback != None and self.count % self.increment == 0: