Fixed error cousin relation.

svn: r11017
This commit is contained in:
Peter Landgren 2008-09-04 13:43:50 +00:00
parent b77cfeeffa
commit 48c1ea3a63

View File

@ -185,10 +185,6 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
result.append('mor') result.append('mor')
if inlaw != '' : if inlaw != '' :
inlaw = 'ingifta ' inlaw = 'ingifta '
if len(result) % 2 != 0:
# Correct string "-1" with genitive s and add a space to get
# correct Swedish, if odd number of ancestors
result[-1] = result[-1] + 's '
result.append(self._get_cousin(level, step, inlaw)) result.append(self._get_cousin(level, step, inlaw))
if step != '' and len(result)==1: if step != '' and len(result)==1:
result[0] = self.STEP + result[0] result[0] = self.STEP + result[0]