* src/EditPerson.py: don't double add a place
svn: r5933
This commit is contained in:
parent
98aab9b503
commit
2d39167929
@ -1,3 +1,6 @@
|
|||||||
|
2006-02-13 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/EditPerson.py: don't double add a place
|
||||||
|
|
||||||
2006-02-13 Alex Roitman <shura@gramps-project.org>
|
2006-02-13 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/ReportUtils.py (buried_partial_date_no_place): Typo.
|
* src/ReportUtils.py (buried_partial_date_no_place): Typo.
|
||||||
* src/ArgHandler.py (ArgHandler.cl_export): Do not strip path from
|
* src/ArgHandler.py (ArgHandler.cl_export): Do not strip path from
|
||||||
|
@ -1107,11 +1107,32 @@ class EditPerson:
|
|||||||
def event_edit_callback(self,event):
|
def event_edit_callback(self,event):
|
||||||
"""Birth and death events may not be in the map"""
|
"""Birth and death events may not be in the map"""
|
||||||
self.redraw_event_list()
|
self.redraw_event_list()
|
||||||
|
self.update_pdmap(event)
|
||||||
try:
|
try:
|
||||||
self.etree.select_iter(self.emap[str(event)])
|
self.etree.select_iter(self.emap[str(event)])
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def update_pdmap(self,event):
|
||||||
|
p = event.get_place_handle()
|
||||||
|
if p:
|
||||||
|
place = self.db.get_place_from_handle(p)
|
||||||
|
self.pdmap[place.get_title()] = p
|
||||||
|
|
||||||
|
def event_birth_callback(self,event):
|
||||||
|
"""Birth and death events may not be in the map"""
|
||||||
|
self.update_birth = False
|
||||||
|
self.birth = event
|
||||||
|
self.update_birth_info()
|
||||||
|
self.update_pdmap(event)
|
||||||
|
|
||||||
|
def event_death_callback(self,event):
|
||||||
|
"""Birth and death events may not be in the map"""
|
||||||
|
self.update_death = False
|
||||||
|
self.death = event
|
||||||
|
self.update_death_info()
|
||||||
|
self.update_pdmap(event)
|
||||||
|
|
||||||
def attr_edit_callback(self,attr):
|
def attr_edit_callback(self,attr):
|
||||||
self.redraw_attr_list()
|
self.redraw_attr_list()
|
||||||
self.atree.select_iter(self.amap[str(attr)])
|
self.atree.select_iter(self.amap[str(attr)])
|
||||||
@ -1212,7 +1233,7 @@ class EditPerson:
|
|||||||
if p:
|
if p:
|
||||||
event.set_place_handle(p)
|
event.set_place_handle(p)
|
||||||
EventEdit.PersonEventEditor(self,pname, event, def_placename, True,
|
EventEdit.PersonEventEditor(self,pname, event, def_placename, True,
|
||||||
self.event_edit_callback, noedit=self.db.readonly)
|
self.event_birth_callback, noedit=self.db.readonly)
|
||||||
|
|
||||||
def on_edit_death_clicked(self,obj):
|
def on_edit_death_clicked(self,obj):
|
||||||
"""Brings up the EventEditor for the death record, event
|
"""Brings up the EventEditor for the death record, event
|
||||||
@ -1229,7 +1250,7 @@ class EditPerson:
|
|||||||
if p:
|
if p:
|
||||||
event.set_place_handle(p)
|
event.set_place_handle(p)
|
||||||
EventEdit.PersonEventEditor(self, pname, event, def_placename,
|
EventEdit.PersonEventEditor(self, pname, event, def_placename,
|
||||||
True, self.event_edit_callback,
|
True, self.event_death_callback,
|
||||||
noedit=self.db.readonly)
|
noedit=self.db.readonly)
|
||||||
|
|
||||||
def on_aka_delete_clicked(self,obj):
|
def on_aka_delete_clicked(self,obj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user