* src/AddSpouse.py: fix gender selection
* src/DbPrompter.py: support other DB formats * src/GrampsBSDDB.py: BSDDB format, derived from GrampsDbBase * src/GrampsDbBase.py: base class for database classes * src/GrampsGEDDB.py: GEDCOM format, derived from GrampsDbBase * src/GrampsXMLDB.py: XML format, derived from GrampsDbBase * src/PeopleModel.py: handle rebuilds better * src/RelLib.py: use try_to_find_person_from_handle * src/WriteXML.py: use gramps ids instead of handles * src/const.py.in: handle family relations correctly * src/gramps_main.py: remove prefix settings * src/data/gnome-mime-application-x-gramps-xml.png: new icon * src/data/gramps.applications: support for x-gramps-xml * src/data/gramps.keys: support for x-gramps-xml * src/data/gramps.mime: support for x-gramps-xml * src/data/gramps.schemas: added event format * src/data/gramps.xml: support for x-gramps-xml * src/plugins/ReadGedcom.py: start of GEDDB support * src/plugins/WriteGedcom.py: start of GEDDB support svn: r3306
This commit is contained in:
@@ -89,7 +89,7 @@ class PeopleModel(gtk.GenericTreeModel):
|
||||
]
|
||||
|
||||
maps = self.db.get_people_view_maps()
|
||||
if maps[0] != None:
|
||||
if maps[0] != None and len(maps[0]) != 0:
|
||||
self.top_iter2path = maps[0]
|
||||
self.top_path2iter = maps[1]
|
||||
self.iter2path = maps[2]
|
||||
@@ -137,7 +137,7 @@ class PeopleModel(gtk.GenericTreeModel):
|
||||
return
|
||||
|
||||
for person_handle in self.db.get_person_keys():
|
||||
|
||||
|
||||
person = self.db.try_to_find_person_from_handle(person_handle)
|
||||
surname = unicode(person.get_primary_name().get_surname())
|
||||
|
||||
|
Reference in New Issue
Block a user