From: Benny M. <ben...@gm...> - 2010-09-06 18:39:58
|
2010/9/6 Benny Malengier <ben...@gm...> > This must be due to the change of Doug in how the filter is retrieved, > http://gramps.svn.sourceforge.net/viewvc/gramps?view=revision&revision=15800 > Post a bug ticket. Doug created an index holding the filter names, I guess > str() or so is needed to encode/decode unicode to str for the key of the > dictionary?? > > In case above is not clear, what I mean is that perhaps the encoding as read from the custom_filters.xml is different from what is obtained from gtk in the filter name... although I would think 3.2.x to also fail then... B > Benny > > > > 2010/9/6 Peter Landgren <pet...@te...> > > Den Monday 06 September 2010 13.10.57 skrev Benny Malengier: >> > 2010/9/4 Peter Landgren <pet...@te...> >> > >> > > Benny, >> > > >> > > > All, >> > > > >> > > > please test your filters in branch32/trunk. >> > > >> > > I created two filters each of two filters: >> > > 1.1 All men >> > > 1.2 Without known birth date. >> > > Both filters shall apply >> > > >> > > and >> > > 2.1 All female >> > > 2.2 Without known birth date. >> > > Both filters shall apply >> > > >> > > Result: >> > > >> > > Filter 1 works in branch32 but NOT in trunk, gives 0 result, should be >> > > 100 Filter 2 works in both branch32 and trunk >> > > >> > > I also changed the order but same result. >> > > >> > > I tested the filters separately and found that it's the filter for men >> > > that always give zero result in >> > > trunk, but works in branch32. >> > >> > I cannot reproduce this error. You are sure gender or tag or so have no >> > setting in the filter sidebar? >> > >> Benny >> >> Believe me or not, but is has to do with the name of the filter. I had >> named it "Män" and used from >> the filter panel gives 0 men. From filter test function, it works OK. >> >> If I rename it to "Man" it works both in Filter Test function and from the >> filter panel! >> Renamed the female filter to "Töser" and got 0. >> Non latin characters is a problem in trunk, but not in branch! >> >> /Peter >> >> Filter definitions: >> <filter name="Män" function="and"> >> <rule class="IsMale"> >> </rule> >> </filter> >> <filter name="Man" function="and"> >> <rule class="IsMale"> >> </rule> >> > > |