Implement iter_people_handles methods and begin to use them
svn: r12760
This commit is contained in:
@@ -245,8 +245,8 @@ class Calendar(Report):
|
||||
This method runs through the data, and collects the relevant dates
|
||||
and text.
|
||||
"""
|
||||
people = self.database.get_person_handles(sort_handles=False)
|
||||
self.progress.set_pass(_('Applying Filter...'), len(people))
|
||||
people = self.database.iter_person_handles()
|
||||
self.progress.set_pass(_('Applying Filter...'), self.database.get_number_of_people())
|
||||
people = self.filter.apply(self.database, people, self.progress)
|
||||
pmgr = PluginManager.get_instance()
|
||||
rel_calc = pmgr.get_relationship_calculator()
|
||||
|
||||
@@ -417,7 +417,7 @@ class Extract(object):
|
||||
data.append((ext[name][1], {}, ext[name][2], ext[name][3]))
|
||||
|
||||
# go through the people and collect data
|
||||
for person_handle in filter_func.apply(db, db.get_person_handles(sort_handles=False)):
|
||||
for person_handle in filter_func.apply(db, db.iter_person_handles()):
|
||||
|
||||
person = db.get_person_from_handle(person_handle)
|
||||
# check whether person has suitable gender
|
||||
|
||||
@@ -239,7 +239,7 @@ class TimeLine(Report):
|
||||
high = -999999
|
||||
|
||||
self.plist = self.filter.apply(self.database,
|
||||
self.database.get_person_handles(sort_handles=False))
|
||||
self.database.iter_person_handles())
|
||||
|
||||
for p_id in self.plist:
|
||||
p = self.database.get_person_from_handle(p_id)
|
||||
@@ -280,7 +280,7 @@ class TimeLine(Report):
|
||||
|
||||
def name_size(self):
|
||||
self.plist = self.filter.apply(self.database,
|
||||
self.database.get_person_handles(sort_handles=False))
|
||||
self.database.iter_person_handles())
|
||||
|
||||
style_sheet = self.doc.get_style_sheet()
|
||||
gstyle = style_sheet.get_draw_style('TLG-text')
|
||||
|
||||
Reference in New Issue
Block a user