Import from XML builds placeTable properly
svn: r1005
This commit is contained in:
parent
eb70ab961b
commit
6ce1c2713f
@ -499,6 +499,7 @@ class GrampsParser:
|
||||
if self.placeobj.get_title() == "":
|
||||
loc = self.placeobj.get_main_location()
|
||||
self.placeobj.set_title(build_place_title(loc))
|
||||
self.db.buildPlaceDisplay(self.placeobj.getId())
|
||||
self.palceobj = None
|
||||
|
||||
def stop_event(self,tag):
|
||||
@ -579,6 +580,7 @@ class GrampsParser:
|
||||
self.source_ref = None
|
||||
|
||||
def stop_source(self,tag):
|
||||
self.db.buildSourceDisplay(self.source.getId())
|
||||
self.source = None
|
||||
|
||||
def stop_sauthor(self,tag):
|
||||
|
@ -230,7 +230,7 @@ class GrampsZODB(GrampsDB):
|
||||
def setDefaultPerson(self,person):
|
||||
"""sets the default Person to the passed instance"""
|
||||
GrampsDB.setDefaultPerson(self,person)
|
||||
self.root()['default'] = person
|
||||
self.root['default'] = person
|
||||
|
||||
|
||||
|
||||
|
@ -1850,6 +1850,11 @@ class GrampsDB(Persistent):
|
||||
if nkey != okey and okey != None:
|
||||
del self.personTable[okey]
|
||||
self.personTable[nkey] = self.personMap[nkey].getDisplayInfo()
|
||||
|
||||
def buildPlaceDisplay(self,nkey,okey=None):
|
||||
if nkey != okey and okey != None:
|
||||
del self.placeTable[okey]
|
||||
self.placeTable[nkey] = self.placeMap[nkey].getDisplayInfo()
|
||||
|
||||
def set_iprefix(self,val):
|
||||
if _id_reg.search(val):
|
||||
|
Loading…
Reference in New Issue
Block a user