Fixed building existing child list.
svn: r643
This commit is contained in:
parent
20182aece1
commit
b86a6a52c9
@ -99,8 +99,6 @@ class SelectChild:
|
|||||||
self.top.show()
|
self.top.show()
|
||||||
|
|
||||||
def redraw_child_list(self,filter):
|
def redraw_child_list(self,filter):
|
||||||
person_list = self.db.getPersonMap().values()
|
|
||||||
person_list.sort(sort.by_last_name)
|
|
||||||
self.add_child.freeze()
|
self.add_child.freeze()
|
||||||
self.add_child.clear()
|
self.add_child.clear()
|
||||||
index = 0
|
index = 0
|
||||||
@ -118,8 +116,8 @@ class SelectChild:
|
|||||||
for c in f.getChildList():
|
for c in f.getChildList():
|
||||||
slist.append(c)
|
slist.append(c)
|
||||||
|
|
||||||
personmap = {}
|
person_list = []
|
||||||
for person in person_list:
|
for person in self.db.getPersonMap().values():
|
||||||
if filter:
|
if filter:
|
||||||
if person in slist:
|
if person in slist:
|
||||||
continue
|
continue
|
||||||
@ -158,14 +156,13 @@ class SelectChild:
|
|||||||
if pbday.getLowYear() > dday.getHighYear() + 150:
|
if pbday.getLowYear() > dday.getHighYear() + 150:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
personmap[utils.phonebook_name(person)] = person
|
person_list.append(person)
|
||||||
|
|
||||||
keynames = personmap.keys()
|
person_list.sort(sort.by_last_name)
|
||||||
keynames.sort()
|
for person in person_list:
|
||||||
for key in keynames:
|
self.add_child.append([utils.phonebook_name(person),
|
||||||
person = personmap[key]
|
utils.birthday(person),
|
||||||
self.add_child.append([utils.phonebook_name(person),utils.birthday(person),\
|
person.getId()])
|
||||||
person.getId()])
|
|
||||||
self.add_child.set_row_data(index,person)
|
self.add_child.set_row_data(index,person)
|
||||||
index = index + 1
|
index = index + 1
|
||||||
self.add_child.thaw()
|
self.add_child.thaw()
|
||||||
|
Loading…
Reference in New Issue
Block a user