* src/RelLib/_Person.py (Person.get_handle_referents): Add

birth_ref and death_ref to the list of referents.


svn: r5983
This commit is contained in:
Alex Roitman 2006-02-24 20:20:22 +00:00
parent c157f3e50f
commit 8e965ac3e8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-02-24 Alex Roitman <shura@gramps-project.org>
* src/RelLib/_Person.py (Person.get_handle_referents): Add
birth_ref and death_ref to the list of referents.
2006-02-23 Don Allingham <don@gramps-project.org> 2006-02-23 Don Allingham <don@gramps-project.org>
* src/EditEventRef.py: switch to monitored widgets, place selector * src/EditEventRef.py: switch to monitored widgets, place selector
* src/EventEdit.py: switch to monitored widgets, place selector * src/EventEdit.py: switch to monitored widgets, place selector

View File

@ -330,8 +330,9 @@ class Person(PrimaryObject,SourceNote,
@return: Returns the list of objects refereincing primary objects. @return: Returns the list of objects refereincing primary objects.
@rtype: list @rtype: list
""" """
birth_death = [item for item in [birth_ref,death_ref] if item]
return self.get_sourcref_child_list() + self.source_list \ return self.get_sourcref_child_list() + self.source_list \
+ self.event_ref_list + self.event_ref_list + birth_death
def set_complete_flag(self,val): def set_complete_flag(self,val):
warn( "Use set_marker instead of set_complete_flag", DeprecationWarning, 2) warn( "Use set_marker instead of set_complete_flag", DeprecationWarning, 2)