Replace get_family_handles with iter_family_handles

svn: r12776
This commit is contained in:
Gerald Britton
2009-07-08 16:11:20 +00:00
parent f680992d04
commit b601f4bdf2
21 changed files with 53 additions and 29 deletions

View File

@@ -123,7 +123,8 @@ def _initialize_options(options, dbstate):
if family_list:
family_handle = family_list[0]
else:
family_handle = dbase.get_family_handles()[0]
for family_handle in dbase.iter_family_handles():
break
family = dbase.get_family_from_handle(family_handle)
option.set_value(family.get_gramps_id())