update
svn: r4839
This commit is contained in:
parent
fdc3979278
commit
7772b6f201
@ -402,10 +402,10 @@ class TimeLineOptions(ReportOptions.ReportOptions):
|
|||||||
"""Set up the list of possible content filters."""
|
"""Set up the list of possible content filters."""
|
||||||
if person:
|
if person:
|
||||||
name = person.get_primary_name().get_name()
|
name = person.get_primary_name().get_name()
|
||||||
handle = person.get_handle()
|
gramps_id = person.get_gramps_id()
|
||||||
else:
|
else:
|
||||||
name = 'PERSON'
|
name = 'PERSON'
|
||||||
handle = ''
|
gramps_id = ''
|
||||||
|
|
||||||
all = GenericFilter.GenericFilter()
|
all = GenericFilter.GenericFilter()
|
||||||
all.set_name(_("Entire Database"))
|
all.set_name(_("Entire Database"))
|
||||||
@ -413,15 +413,15 @@ class TimeLineOptions(ReportOptions.ReportOptions):
|
|||||||
|
|
||||||
des = GenericFilter.GenericFilter()
|
des = GenericFilter.GenericFilter()
|
||||||
des.set_name(_("Descendants of %s") % name)
|
des.set_name(_("Descendants of %s") % name)
|
||||||
des.add_rule(GenericFilter.IsDescendantOf([handle,1]))
|
des.add_rule(GenericFilter.IsDescendantOf([gramps_id,1]))
|
||||||
|
|
||||||
ans = GenericFilter.GenericFilter()
|
ans = GenericFilter.GenericFilter()
|
||||||
ans.set_name(_("Ancestors of %s") % name)
|
ans.set_name(_("Ancestors of %s") % name)
|
||||||
ans.add_rule(GenericFilter.IsAncestorOf([handle,1]))
|
ans.add_rule(GenericFilter.IsAncestorOf([gramps_id,1]))
|
||||||
|
|
||||||
com = GenericFilter.GenericFilter()
|
com = GenericFilter.GenericFilter()
|
||||||
com.set_name(_("People with common ancestor with %s") % name)
|
com.set_name(_("People with common ancestor with %s") % name)
|
||||||
com.add_rule(GenericFilter.HasCommonAncestorWith([handle]))
|
com.add_rule(GenericFilter.HasCommonAncestorWith([gramps_id]))
|
||||||
|
|
||||||
return [all,des,ans,com]
|
return [all,des,ans,com]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user