Open main menu

Gramps β

Changes

RelatedPersons

939 bytes added, 12:34, 31 March 2009
PATCHS
--- ExportOptions.py 2009-02-16 18:01:08.000000000 +0100
+++ ExportOptions.py 2009-03-31 14:12:46.000000000 +0200
@@ -160,8 +160,12 @@
com = GenericFilter()
com.set_name(_("People with common ancestor with %s") % name)
def parse_options(self):
 
=== To set the rule as a generic filter rule for reports and not primary formats on export (GeneWeb, csv) ===
 
--- ReportBase/_ReportUtils.py 2009-02-16 17:59:26.000000000 +0100
+++ ReportBase/_ReportUtils.py 2009-03-31 14:21:08.000000000 +0200
@@ -3180,11 +3180,15 @@
com = GenericFilter()
com.set_name(_("People with common ancestor with %s") % name)
com.add_rule(Rules.Person.HasCommonAncestorWith([gramps_id]))
+
+ rel = GenericFilter()
+ rel.set_name(_("People related with %s") % name)
+ rel.add_rule(Rules.Person.RelatedPersons([gramps_id]))
if include_single:
- the_filters = [filt_id, all, des, df, ans, com]
+ the_filters = [filt_id, all, des, df, ans, com, rel]
else:
- the_filters = [all, des, df, ans, com]
+ the_filters = [all, des, df, ans, com, rel]
the_filters.extend(CustomFilters.get_filters('Person'))
return the_filters