* src/plugins/rel_nl.py: new half sibling types

* src/plugins/rel_it.py: new half sibling types
	* src/Relationship.py: change the sibling type to distinguish
	side of relation. Correct bug in sibling type determination.

2007-11-23 Benny Malengier <benny.malengier@gramps-project.org>


svn: r9390
This commit is contained in:
Benny Malengier
2007-11-23 15:02:30 +00:00
parent 5a37ee41ea
commit f000b4575a
4 changed files with 42 additions and 15 deletions

View File

@@ -484,7 +484,9 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
rel_str = 'la cognata'
else:
rel_str = 'il cognato/a'
elif sib_type == self.HALF_SIB or sib_type == self.STEP_SIB:
elif sib_type == self.HALF_SIB_FATHER \
or sib_type == self.HALF_SIB_MOTHER \
or sib_type == self.STEP_SIB:
#Italian has no difference between half and step sibling!
if not inlaw:
if gender_b == gen.lib.Person.MALE:

View File

@@ -514,7 +514,8 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
"""
if sib_type == self.NORM_SIB or sib_type == self.UNKNOWN_SIB:
typestr = ''
elif sib_type == self.HALF_SIB:
elif sib_type == self.HALF_SIB_FATHER \
or sib_type == self.HALF_SIB_MOTHER:
typestr = self.HALF
elif sib_type == self.STEP_SIB:
typestr = self.STEP