2942: Note in Family eventref not referenced, also source of attribute of family eventref
svn: r12535
This commit is contained in:
parent
58f4a5a2ed
commit
53716bdca0
@ -100,12 +100,22 @@ class Attribute(SecondaryObject, PrivacyBase, SourceBase, NoteBase):
|
||||
"""
|
||||
return self.source_list
|
||||
|
||||
def get_note_child_list(self):
|
||||
"""
|
||||
Return the list of child secondary objects that may refer notes.
|
||||
|
||||
@return: Returns the list of child secondary child objects that may
|
||||
refer notes.
|
||||
@rtype: list
|
||||
"""
|
||||
return self.source_list
|
||||
|
||||
def get_handle_referents(self):
|
||||
"""
|
||||
Return the list of child objects which may, directly or through
|
||||
their children, reference primary objects.
|
||||
|
||||
@return: Returns the list of objects refereincing primary objects.
|
||||
@return: Returns the list of objects referencing primary objects.
|
||||
@rtype: list
|
||||
"""
|
||||
return self.source_list
|
||||
|
@ -258,7 +258,8 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase,
|
||||
@rtype: list
|
||||
"""
|
||||
check_list = self.media_list + self.attribute_list + \
|
||||
self.lds_ord_list + self.child_ref_list
|
||||
self.lds_ord_list + self.child_ref_list + \
|
||||
self.event_ref_list
|
||||
return check_list
|
||||
|
||||
def get_note_child_list(self):
|
||||
@ -270,7 +271,8 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase,
|
||||
@rtype: list
|
||||
"""
|
||||
check_list = self.media_list + self.attribute_list + \
|
||||
self.lds_ord_list + self.child_ref_list + self.source_list
|
||||
self.lds_ord_list + self.child_ref_list + self.source_list + \
|
||||
self.event_ref_list
|
||||
return check_list
|
||||
|
||||
def get_referenced_handles(self):
|
||||
@ -282,7 +284,6 @@ class Family(SourceBase, NoteBase, MediaBase, AttributeBase, LdsOrdBase,
|
||||
@rtype: list
|
||||
"""
|
||||
ret = self.get_referenced_note_handles()
|
||||
ret += [('Event', ref.ref) for ref in self.event_ref_list]
|
||||
ret += [('Person', handle) for handle
|
||||
in ([ref.ref for ref in self.child_ref_list] +
|
||||
[self.father_handle, self.mother_handle])
|
||||
|
Loading…
Reference in New Issue
Block a user