From: Nick H. <nic...@ho...> - 2013-08-12 15:27:19
|
Tony, Gramps does use an object model which is separate form the database layer. The Date object has a match method, which handles approximate dates, date ranges and different calendars. The Name object doesn't have any matching methods. We could, however, create a simple match method based upon the existing name matching rule. Places are not stored as a hierarchy at the moment. Again, it would be easy to create a match method for the Place object by taking code from the current rule. Nick. On 11/08/13 15:22, Tony Proctor wrote: > I'm not a fan of text-based filters for this type of application. I > know through experience that they can be fragile and error-prone, > especially if misapplied to an idea that would be safer involving > "objects" rather than text. > > Just to stir things up a little, can I refer you to a FHISO paper that > does seem to be relevant here: http://fhiso.org/files/cfp/cfps19.pdf > > Tony Proctor > > ----- Original Message ----- From: "Nick Hall" <nic...@ho...> > To: "Serge Noiraud" <Ser...@fr...> > Cc: "Gramps-developers mailing list" <gra...@li...> > Sent: Sunday, August 11, 2013 3:16 PM > Subject: Re: [Gramps-devel] Filters and regular expressions > > >> On 11/08/13 09:59, Serge Noiraud wrote: >>> It doesn't work any more for me : >>> I get the following messages for all my filters: >>> >>> WARNING: Too many arguments in filter « XXXXX » ! >>> Trying to load with subset of arguments. >>> >>> I needed to edit all the filters and put again "use regexp". >>> Now all filters are working again >> >> Serge, >> >> Thanks for reporting this. >> >> The warning occurred with the five upgraded rules that already used >> regular expressions. >> >> People with records containing <substring> >> People with the <name> >> Families with child with the <Name> >> Families with father with the <Name> >> Families with mother with the <Name> >> >> I've added some code to automatically update these rules when they are >> first loaded. Let me know if this fixes your problem. >> >> Nick. >> >> >> ------------------------------------------------------------------------------ >> >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> >> _______________________________________________ >> Gramps-devel mailing list >> Gra...@li... >> https://lists.sourceforge.net/lists/listinfo/gramps-devel >> > > > |