debug
svn: r7519
This commit is contained in:
parent
ea5f58d1b6
commit
8489424b13
@ -653,24 +653,26 @@ class PersonView(PageView.PersonNavView):
|
|||||||
def person_added(self,handle_list):
|
def person_added(self,handle_list):
|
||||||
if not self.model:
|
if not self.model:
|
||||||
return
|
return
|
||||||
for node in handle_list:
|
if self.active:
|
||||||
person = self.dbstate.db.get_person_from_handle(node)
|
self.dirty = False
|
||||||
pn = person.get_primary_name()
|
for node in handle_list:
|
||||||
top = NameDisplay.displayer.name_grouping_name(self.db, pn)
|
person = self.dbstate.db.get_person_from_handle(node)
|
||||||
|
pn = person.get_primary_name()
|
||||||
|
top = NameDisplay.displayer.name_grouping_name(self.db, pn)
|
||||||
|
|
||||||
self.model.rebuild_data()
|
self.model.rebuild_data()
|
||||||
if not self.model.is_visable(node):
|
if not self.model.is_visable(node):
|
||||||
continue
|
continue
|
||||||
if (not self.model.sname_sub.has_key(top) or
|
if (not self.model.sname_sub.has_key(top) or
|
||||||
len(self.model.sname_sub[top]) == 1):
|
len(self.model.sname_sub[top]) == 1):
|
||||||
path = self.model.on_get_path(top)
|
path = self.model.on_get_path(top)
|
||||||
pnode = self.model.get_iter(path)
|
pnode = self.model.get_iter(path)
|
||||||
self.model.row_inserted(path,pnode)
|
self.model.row_inserted(path,pnode)
|
||||||
path = self.model.on_get_path(node)
|
path = self.model.on_get_path(node)
|
||||||
tnode = self.model.get_iter((path[0],))
|
pnode = self.model.on_get_iter(path)
|
||||||
pnode = self.model.get_iter(path)
|
self.model.row_inserted(path, pnode)
|
||||||
print top, path, tnode, pnode
|
else:
|
||||||
self.model.row_inserted(path,pnode)
|
self.dirty = True
|
||||||
|
|
||||||
def person_removed(self,handle_list):
|
def person_removed(self,handle_list):
|
||||||
if not self.model:
|
if not self.model:
|
||||||
|
Loading…
Reference in New Issue
Block a user