2008/11/24 Ken B <ken.mymail@gmail.com>
I did not notice when running the filter but there was this output in the terminal,


{'ae491873f7b0e366e7d': 1, 'ab4174ea0473e942cd7': 1, 'af64663764442e00130': 1, 'ae4918734543591096c': 1, 'ae49187bd8d32c711d2': 1, 'ab4174dcd25506dc28b': 1, 'ae49188ebc20d9cab99': 1, 'af645a04f92425a8ea2': 1, 'aa2de2c551a291d64f3': 1, 'ae491870b5935d68b1b': 1, 'ae491862d1a17d9dbf1': 1, 'b05596e447262218ea8': 1, 'aa2de25ef3873932a7a': 1, 'ae49186747d1f7ac5d9': 1, 'aa2de21a6e66f99f85d': 1, 'b11a53bfe0c2dc58fd5': 1, 'adf5c438f342e7e7330': 1, 'ae49188f1477fcb6f6c': 1,.................................................................................................
'ae490e9ad387a0794f6': 1, 'ae49186f1275a02fd4f': 1, 'ae491886d8f2a50a555': 1, 'b180a451c8c0ef258b6': 1, 'aa7399552fe1d9a21a4': 1, 'ae491863a601f7a5927': 1, 'aa746a1a1980d28cb62': 1, 'ae49187fd1752f2ced8': 1, 'aa74227a1cd7b643cc4': 1, 'ae4918792f930454afb': 1, 'ae49186e1df5af7d537': 1, 'ae491854f4657b62eb0': 1, 'ae4918581711f1349d5': 1, 'ae4918638272f155bda': 1, 'ae49186f1e7173023e9': 1}

I assume this is a list of the uuid's from the print command of the people displayed, am I correct in this assumption ?
Ken.

Yes, it means the code of prepare is good, and probably somewhere the self.map is reset before apply is done.
This might be because it inherits from MatchesFilter, which is not needed (I think).

Benny
 


Benny Malengier wrote:
 The filter looks good, but I see that the IsDescendantOfFilterMatch has some logical errors (??) and is not inclusive, so the people who are in the filter you match do not show in the result under some circumstances. This could explain some things, but you would have some output.

Can you create a filter that has this behaiviour on the example database distributed with GRAMPS and submit a bug entry?

In the meantime, you could open up the file
 Filters/Rules/Person/_IsDescendantOfFilterMatch.py
and before line 74 filt.reset() add the line
print self.map

to see if theere is some output.
Benny


2008/11/24 Ken B <ken.mymail@gmail.com>
Hi Benny,

    Thanks for your prompt response. I hope this is the section that you mean,

----------- First Filter -----------

  <filter name="5th_G_A" function="or" comment="Ancestors of 5th Generation GGG Parents">
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
    <rule class="IsAncestorOf">
      <arg value="XXXXX"/>
      <arg value="1"/>
    </rule>
  </filter>

---------- Second Filter -----------

  <filter name="5th_G_eol_D" function="or" comment="Decendants of end of line Ancestors">
    <rule class="IsDescendantOfFilterMatch">
      <arg value="5th_G_A"/>
    </rule>
  </filter>

Ken.


Benny Malengier wrote:
It is hard to know what you did.
Perhaps paste the relevant content from the file ~/.gramps/custom_filters.xml so it is clear what you activated. Remove private info first though.

Benny

2008/11/24 Ken B <ken.mymail@gmail.com>
Hello All,

    I am trying to filter all people (ancestor and descendants) based on great great grand parents.

    I have created a filter for the <ancestors of> ggg parents including the original person, with the option "At least one rule must apply". When tested this produces the desired output.
    Then created a filter for <descendants of filter match> using the original filter,
with the option "At least one rule must apply". There is no output from this filter when tested.
    Have I set this up correctly, or is this just not possible to do ?

Thanks,
Ken.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users