From: jerome <rom...@ya...> - 2010-01-08 18:27:54
|
> So if I select the wife of my uncle it should show "Aunt (by marriage)" and not "not related". I get Aunt (inlaw) on french relationship calculator with quick report => def get_single_relationship_string() Something like : if Gb == 1 and gender_b == gen.lib.Person.FEMALE and Ga < len(_SISTER_LEVEL): rel_str = self.get_aunt(Ga, inlaw) which should also be available on German calculator : if degree == 1: if in_law_a or in_law_b: if in_law_a and in_law_b: rel_str = _schwippschwager[gender] else: rel_str = _schwager[gender] but there is a comment on rel_fr.py ... "#(missing on RelCalc tool - Status Bar)" def get_single_relationship_string() is not used on Relcalc tool... => looks like sister_level, brother_level are ignored Instead there is get_sibling_relationship_string() ! Maybe we need to check ancestors/descendants siblings ? (aunt, uncle, great-uncle, great-aunt, etc ...) I suppose we could try to use : def _get_sibling(self, level, step='', inlaw='') and if sibling_level and gen.lib.Person.FEMALE : return sister_level if sibling_level and gen.lib.Person.MALE : return brother_level UNKNOWN etc ... I will try to get Aunt (inlaw) on RelCal on my locale calculator. Jérôme --- En date de : Ven 8.1.10, Jérôme <rom...@ya...> a écrit : > De: Jérôme <rom...@ya...> > Objet: Re: [Gramps-devel] Probably alive > À: "derHeinzi" <hei...@ya...> > Cc: gra...@li... > Date: Vendredi 8 Janvier 2010, 18h27 > > to enhance the relationship > calculator (and the display in the status line) to show > married relationships. So if I select the wife of my uncle > it should show "Aunt (by marriage)" and not "not related". > > Maybe one needs to add a rule on your localized > Relationship calculator > ? Does main english calculator returns something ? > > > To give a feedback as a user: I would never use such a > tool that alters my data. > > Maybe by providing dialogs like : > http://www.gramps-project.org/wiki/index.php?title=Gramps_3.1_Wiki_Manual_-_Tools#Find_Possible_Duplicate_People... > http://www.gramps-project.org/wiki/index.php?title=Gramps_3.1_Wiki_Manual_-_Tools#Extract_Information_from_Names > http://www.gramps-project.org/wiki/index.php?title=Gramps_3.1_Wiki_Manual_-_Tools#Fix_Capitalization_of_Family_Names... > http://www.gramps-project.org/wiki/index.php?title=Gramps_3.1_Wiki_Manual_-_Tools#Rename_Event_Types > or > http://www.gramps-project.org/wiki/index.php?title=Gramps_3.1_Wiki_Manual_-_Tools#Compare_Individual_Events... > (which is not a batch modification tool, just for > illustrate) > > So, Gramps does not need to warn the user anymore ? > He makes the choice modify data or not and he knows what > has been done. > > > Jérôme > > > derHeinzi a écrit : > > > > > > Benny Malengier wrote: > >> For my research seeing the changes that will be > done before having > >> them applied is also a must. > >> Several tools already follow this approach. I know > I can first backup, > >> ...., but I find that too cumbersome. > >> > > > > To give a feedback as a user: I would never use such a > tool that alters my > > data. I can identify all I need using the filters and > edit the found entries > > by hand. In my opinion it would be more useful to > enhance the relationship > > calculator (and the display in the status line) to > show married > > relationships. So if I select the wife of my uncle it > should show "Aunt (by > > marriage)" and not "not related". > > > > Heinz > > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer > Community > Take advantage of Verizon's best-in-class app development > support > A streamlined, 14 day to market process makes app > distribution fast and easy > Join now and get one step closer to millions of Verizon > customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |