Small simplifications
svn: r13676
This commit is contained in:
parent
67467da112
commit
288a20f62d
@ -48,19 +48,19 @@ class FilterProxyDb(ProxyDbBase):
|
|||||||
ProxyDbBase.__init__(self, db)
|
ProxyDbBase.__init__(self, db)
|
||||||
self.person_filter = person_filter
|
self.person_filter = person_filter
|
||||||
if person_filter:
|
if person_filter:
|
||||||
self.plist = set(h for h in person_filter.apply(
|
self.plist = set(person_filter.apply(
|
||||||
self.db, self.db.iter_person_handles()))
|
self.db, self.db.iter_person_handles()))
|
||||||
else:
|
else:
|
||||||
self.plist = set(self.db.iter_person_handles())
|
self.plist = set(self.db.iter_person_handles())
|
||||||
|
|
||||||
if event_filter:
|
if event_filter:
|
||||||
self.elist = set(h for h in event_filter.apply(
|
self.elist = set(event_filter.apply(
|
||||||
self.db, self.db.iter_event_handles()))
|
self.db, self.db.iter_event_handles()))
|
||||||
else:
|
else:
|
||||||
self.elist = set(self.db.iter_event_handles())
|
self.elist = set(self.db.iter_event_handles())
|
||||||
|
|
||||||
if note_filter:
|
if note_filter:
|
||||||
self.nlist = set(h for h in note_filter.apply(
|
self.nlist = set(note_filter.apply(
|
||||||
self.db, self.db.iter_note_handles()))
|
self.db, self.db.iter_note_handles()))
|
||||||
else:
|
else:
|
||||||
self.nlist = set(self.db.iter_note_handles())
|
self.nlist = set(self.db.iter_note_handles())
|
||||||
@ -68,8 +68,7 @@ class FilterProxyDb(ProxyDbBase):
|
|||||||
self.flist = set()
|
self.flist = set()
|
||||||
for handle in self.plist:
|
for handle in self.plist:
|
||||||
person = self.db.get_person_from_handle(handle)
|
person = self.db.get_person_from_handle(handle)
|
||||||
for handle in person.get_family_handle_list():
|
self.flist.update(person.get_family_handle_list())
|
||||||
self.flist.add(handle)
|
|
||||||
|
|
||||||
def get_person_from_handle(self, handle):
|
def get_person_from_handle(self, handle):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user