Josip,

first, let me tell you I did not finish yet with all changes, nor with all tests.
Secondly, you are right, as b is the uncle, he only has one ancestor.

I'll try to find time today to continue working on it.

Benny

2007/10/28, Josip <josip@pisoj.com>:
Hi,

In svn 9256 running test from __main__ with my rel_xx.py trow "string
index out of range" error in uncles section.
I myself do not know Python but trying to write RelationshipCalculator
for my language with new get_single_relationship_string function.
The part i wrote work good in program but crashes in test.

In Relationship.py function definition is:
get_single_relationship_string(self, Ga, Gb, gender_a, gender_b,
                                        reltocommon_a, reltocommon_b,
                                        only_birth=True,
                                        in_law_a=False, in_law_b=False):

but in _test function in uncles section is called like this:
...
for i in range(1,MAX) :
    relst = 'f'
       print FMT % rc.get_single_relationship_string(i, 1,
                                       gen.lib.Person.FEMALE,
                                       gen.lib.Person.MALE,
                                       'f', relst * i,
                                        only_birth=onlybirth,
                                        in_law_a=inlawa,in_law_b=inlawb)
look like 'f' and relst*i shuld swich places.
Same thing in aunts section.

--
Josip

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Gramps-devel mailing list
Gramps-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-devel