Fixed error in handling list of handles, not an iterator
svn: r13223
This commit is contained in:
parent
9cbb58af27
commit
bb43bec5fd
@ -176,8 +176,9 @@ def run(database, document, filter_name, *args, **kwargs):
|
|||||||
pass
|
pass
|
||||||
elif (filter_name == 'list of people'):
|
elif (filter_name == 'list of people'):
|
||||||
stab.columns(_("Person"), _("Birth Date"), _("Name type"))
|
stab.columns(_("Person"), _("Birth Date"), _("Name type"))
|
||||||
people = kwargs["handles"]
|
handles = kwargs["handles"]
|
||||||
for person in database.iter_people():
|
for person_handle in handles:
|
||||||
|
person = database.get_person_from_handle(person_handle)
|
||||||
stab.row(person, sdb.birth_date_obj(person),
|
stab.row(person, sdb.birth_date_obj(person),
|
||||||
str(person.get_primary_name().get_type()))
|
str(person.get_primary_name().get_type()))
|
||||||
matches += 1
|
matches += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user