2007-08-28 Don Allingham <don@gramps-project.org>

* src/RelLib/_Person.py (Person.__init__): fix unserialize



svn: r8883
This commit is contained in:
Don Allingham 2007-08-28 11:47:22 +00:00
parent 3f00f17bde
commit abdda6106d
2 changed files with 20 additions and 18 deletions

View File

@ -1,3 +1,6 @@
2007-08-28 Don Allingham <don@gramps-project.org>
* src/RelLib/_Person.py (Person.__init__): fix unserialize
2007-08-27 Benny Malengier <bm@cage.ugent.be> 2007-08-27 Benny Malengier <bm@cage.ugent.be>
* src/glade/edit_person.glade: add event box for context menu * src/glade/edit_person.glade: add event box for context menu
* src/Editors/_EditPerson.py : add context menu, feature req #946 * src/Editors/_EditPerson.py : add context menu, feature req #946

View File

@ -84,9 +84,6 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
data items have empty or null values, including the database data items have empty or null values, including the database
handle. handle.
""" """
if data:
self.unserialize(data)
else:
PrimaryObject.__init__(self) PrimaryObject.__init__(self)
SourceBase.__init__(self) SourceBase.__init__(self)
NoteBase.__init__(self) NoteBase.__init__(self)
@ -104,6 +101,8 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
self.gender = Person.UNKNOWN self.gender = Person.UNKNOWN
self.death_ref_index = -1 self.death_ref_index = -1
self.birth_ref_index = -1 self.birth_ref_index = -1
if data:
self.unserialize(data)
# We hold a reference to the GrampsDB so that we can maintain # We hold a reference to the GrampsDB so that we can maintain
# its genderStats. It doesn't get set here, but from # its genderStats. It doesn't get set here, but from