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>
* src/glade/edit_person.glade: add event box for context menu
* src/Editors/_EditPerson.py : add context menu, feature req #946

View File

@ -84,26 +84,25 @@ class Person(SourceBase, NoteBase, AttributeBase, MediaBase,
data items have empty or null values, including the database
handle.
"""
PrimaryObject.__init__(self)
SourceBase.__init__(self)
NoteBase.__init__(self)
MediaBase.__init__(self)
AttributeBase.__init__(self)
AddressBase.__init__(self)
UrlBase.__init__(self)
LdsOrdBase.__init__(self)
self.primary_name = Name()
self.event_ref_list = []
self.family_list = []
self.parent_family_list = []
self.alternate_names = []
self.person_ref_list = []
self.gender = Person.UNKNOWN
self.death_ref_index = -1
self.birth_ref_index = -1
if data:
self.unserialize(data)
else:
PrimaryObject.__init__(self)
SourceBase.__init__(self)
NoteBase.__init__(self)
MediaBase.__init__(self)
AttributeBase.__init__(self)
AddressBase.__init__(self)
UrlBase.__init__(self)
LdsOrdBase.__init__(self)
self.primary_name = Name()
self.event_ref_list = []
self.family_list = []
self.parent_family_list = []
self.alternate_names = []
self.person_ref_list = []
self.gender = Person.UNKNOWN
self.death_ref_index = -1
self.birth_ref_index = -1
# We hold a reference to the GrampsDB so that we can maintain
# its genderStats. It doesn't get set here, but from