* src/EditPerson.py: make a distiction between adding a person
and editing a person. * src/PeopleView.py: drop unused goto_active_person parameter * srcgramps_main.py: drop unused goto_active_person parameter svn: r3517
This commit is contained in:
parent
dda871049e
commit
e27c787955
@ -1,3 +1,9 @@
|
||||
2004-08-28 Don Allingham <dallingham@users.sourceforge.net>
|
||||
* src/EditPerson.py: make a distiction between adding a person
|
||||
and editing a person.
|
||||
* src/PeopleView.py: drop unused goto_active_person parameter
|
||||
* srcgramps_main.py: drop unused goto_active_person parameter
|
||||
|
||||
2004-08-27 Tim Waugh <twaugh@redhat.com>
|
||||
* src/SelectObject.py (SelectObject.redraw): Use GRAMPS ID for
|
||||
user display.
|
||||
|
@ -1614,7 +1614,10 @@ class EditPerson:
|
||||
if self.lists_changed:
|
||||
self.person.set_source_reference_list(self.srcreflist)
|
||||
|
||||
self.db.commit_person(self.person, trans)
|
||||
if self.person.get_handle() == None:
|
||||
self.db.add_person(self.person, trans)
|
||||
else:
|
||||
self.db.commit_person(self.person, trans)
|
||||
n = self.person.get_primary_name().get_regular_name()
|
||||
self.db.transaction_commit(trans,_("Edit Person (%s)") % n)
|
||||
self.update_lists()
|
||||
|
@ -185,7 +185,7 @@ class PeopleView:
|
||||
def add_to_person_list(self,person,change=0):
|
||||
self.apply_filter_clicked()
|
||||
|
||||
def goto_active_person(self,first=0):
|
||||
def goto_active_person(self):
|
||||
if not self.parent.active_person:
|
||||
return
|
||||
p = self.parent.active_person
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2004 Donald N. Allingham
|
||||
@ -1294,8 +1294,8 @@ class Gramps:
|
||||
self.people_view.redisplay_person_list(p1)
|
||||
self.update_display(0)
|
||||
|
||||
def goto_active_person(self,first=0):
|
||||
self.people_view.goto_active_person(first)
|
||||
def goto_active_person(self):
|
||||
self.people_view.goto_active_person()
|
||||
|
||||
def change_active_person(self,person,force=0):
|
||||
if person == None:
|
||||
|
Loading…
Reference in New Issue
Block a user