From bb43bec5fdeba0d8d32e53b783e3535e0efa3eba Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 19 Sep 2009 09:16:55 +0000 Subject: [PATCH] Fixed error in handling list of handles, not an iterator svn: r13223 --- src/plugins/quickview/FilterByName.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/quickview/FilterByName.py b/src/plugins/quickview/FilterByName.py index 4ec710d8c..b19bcff0e 100644 --- a/src/plugins/quickview/FilterByName.py +++ b/src/plugins/quickview/FilterByName.py @@ -176,8 +176,9 @@ def run(database, document, filter_name, *args, **kwargs): pass elif (filter_name == 'list of people'): stab.columns(_("Person"), _("Birth Date"), _("Name type")) - people = kwargs["handles"] - for person in database.iter_people(): + handles = kwargs["handles"] + for person_handle in handles: + person = database.get_person_from_handle(person_handle) stab.row(person, sdb.birth_date_obj(person), str(person.get_primary_name().get_type())) matches += 1