* src/RelLib/_Person.py (_remove_handle_references): When removing a place dont delete the whole LdsOrd but only unset its place reference.

* src/plugins/Check.py (check_place_references): Add checks for LdsOrd inside Person and Family



svn: r7658
This commit is contained in:
Martin Hawlisch
2006-11-20 15:26:38 +00:00
parent e6edf76240
commit 6123c67283
3 changed files with 35 additions and 6 deletions

View File

@@ -243,9 +243,9 @@ class Person(PrimaryObject,SourceBase,NoteBase,MediaBase,
if handle not in handle_list ]
self.parent_family_list = new_list
elif classname == 'Place':
new_list = [ordinance for ordinance in self.lds_ord_list
if ordinance.place not in handle_list]
self.lds_ord_list = new_list
for ordinance in self.lds_ord_list:
if ordinance.place in handle_list:
ordinance.place = None
def _replace_handle_reference(self, classname, old_handle, new_handle):
if classname == 'Event':