* src/DataViews/_Relationship.py: handle person set to None
svn: r6920
This commit is contained in:
parent
54eab375a6
commit
e989a73aea
@ -1,4 +1,5 @@
|
|||||||
2006-06-19 Don Allingham <don@gramps-project.org>
|
2006-06-19 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DataViews/_Relationship.py: handle person set to None
|
||||||
* src/ViewManger.py: try tabs on the side
|
* src/ViewManger.py: try tabs on the side
|
||||||
* src/DisplayTabs/_PersonRefEmbedList.py: change Relationships to
|
* src/DisplayTabs/_PersonRefEmbedList.py: change Relationships to
|
||||||
Associations
|
Associations
|
||||||
|
@ -121,49 +121,49 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def person_rebuild(self):
|
def person_rebuild(self):
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def family_update(self, handle_list):
|
def family_update(self, handle_list):
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def family_add(self, handle_list):
|
def family_add(self, handle_list):
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def family_delete(self, handle_list):
|
def family_delete(self, handle_list):
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def family_rebuild(self):
|
def family_rebuild(self):
|
||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
while not self.change_person(self.dbstate.active.handle):
|
while not self.change_person(self.dbstate.active.handle):
|
||||||
pass
|
pass
|
||||||
self.dirty = False
|
|
||||||
else:
|
else:
|
||||||
self.dirty = True
|
self.change_person(None)
|
||||||
|
self.dirty = False
|
||||||
|
|
||||||
def get_stock(self):
|
def get_stock(self):
|
||||||
"""
|
"""
|
||||||
@ -278,6 +278,8 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
if self.dbstate.active:
|
if self.dbstate.active:
|
||||||
self.handle_history(self.dbstate.active.handle)
|
self.handle_history(self.dbstate.active.handle)
|
||||||
self.change_person(self.dbstate.active.handle)
|
self.change_person(self.dbstate.active.handle)
|
||||||
|
else:
|
||||||
|
self.change_person(None)
|
||||||
|
|
||||||
def change_person(self, obj):
|
def change_person(self, obj):
|
||||||
if self.redrawing:
|
if self.redrawing:
|
||||||
|
Loading…
Reference in New Issue
Block a user