* src/EditPerson.py: saving grouping name, instead of surname for
updating of the person list * src/ReadGedcom.py: save person and source as soon as created * src/gramps_main.py: compare updates based off grouping name instead of surname svn: r3641
This commit is contained in:
parent
3640cb239d
commit
2b3c82d592
@ -1,3 +1,10 @@
|
||||
2004-10-17 Don Allingham <dallingham@users.sourceforge.net>
|
||||
* src/EditPerson.py: saving grouping name, instead of surname for
|
||||
updating of the person list
|
||||
* src/ReadGedcom.py: save person and source as soon as created
|
||||
* src/gramps_main.py: compare updates based off grouping name
|
||||
instead of surname
|
||||
|
||||
2004-10-17 Julio Sanchez <julio.sanchez@gmail.com>
|
||||
* src/plugins/rel_es.py: Correct levels.
|
||||
|
||||
|
@ -104,7 +104,7 @@ class EditPerson:
|
||||
self.dp = DateHandler.create_parser()
|
||||
self.dd = DateHandler.create_display()
|
||||
self.person = person
|
||||
self.orig_surname = person.get_primary_name().get_surname()
|
||||
self.orig_surname = person.get_primary_name().get_group_name()
|
||||
self.parent = parent
|
||||
self.orig_handle = self.person.get_handle()
|
||||
if self.parent.child_windows.has_key(self.orig_handle):
|
||||
|
@ -77,6 +77,7 @@ class MediaView:
|
||||
self.parent = parent
|
||||
self.db = db
|
||||
self.list = glade.get_widget("media_list")
|
||||
#self.list.set_property('fixed-height-mode',True)
|
||||
self.mid = glade.get_widget("mid")
|
||||
self.mtype = glade.get_widget("mtype")
|
||||
self.mdesc = glade.get_widget("mdesc")
|
||||
|
@ -80,6 +80,7 @@ class PeopleView:
|
||||
|
||||
self.columns = []
|
||||
self.build_columns()
|
||||
#self.person_tree.set_property('fixed-height-mode',True)
|
||||
self.person_selection = self.person_tree.get_selection()
|
||||
self.person_selection.connect('changed',self.row_changed)
|
||||
self.person_tree.connect('row_activated', self.alpha_event)
|
||||
|
@ -71,6 +71,7 @@ class PlaceView:
|
||||
self.parent = parent
|
||||
self.glade = glade
|
||||
self.list = glade.get_widget("place_list")
|
||||
#self.list.set_property('fixed-height-mode',True)
|
||||
self.list.connect('button-press-event',self.button_press)
|
||||
self.list.connect('key-press-event',self.key_press)
|
||||
self.selection = self.list.get_selection()
|
||||
|
@ -615,6 +615,7 @@ class GedcomParser:
|
||||
intid = Utils.create_id()
|
||||
person.set_handle(intid)
|
||||
person.set_gramps_id(gramps_id)
|
||||
self.db.add_person(person,self.trans)
|
||||
self.gid2id[gramps_id] = intid
|
||||
return person
|
||||
|
||||
@ -627,6 +628,7 @@ class GedcomParser:
|
||||
intid = Utils.create_id()
|
||||
source.set_handle(intid)
|
||||
source.set_gramps_id(gramps_id)
|
||||
self.db.add_source(source,self.trans)
|
||||
self.sid2id[gramps_id] = intid
|
||||
return source
|
||||
|
||||
|
@ -70,6 +70,7 @@ class SourceView:
|
||||
self.glade = glade
|
||||
self.update = update
|
||||
self.list = glade.get_widget("source_list")
|
||||
#self.list.set_property('fixed-height-mode',True)
|
||||
self.list.connect('button-press-event',self.button_press)
|
||||
self.selection = self.list.get_selection()
|
||||
|
||||
|
@ -1439,7 +1439,11 @@ class Gramps:
|
||||
|
||||
def update_after_edit(self,epo,change=1):
|
||||
self.active_person = epo.person
|
||||
if epo.orig_surname != self.active_person.get_primary_name().get_surname():
|
||||
pn = self.active_person.get_primary_name()
|
||||
|
||||
mapname = self.db.get_name_group_mapping(pn.get_group_name())
|
||||
|
||||
if epo.orig_surname != pn.get_group_name() or epo.orig_surname != mapname:
|
||||
self.people_view.build_tree()
|
||||
elif change:
|
||||
self.people_view.update_person_list(epo.person)
|
||||
|
Loading…
Reference in New Issue
Block a user