2004-01-08 10:48:27 +05:30
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
# Gramps - a GTK+/GNOME based genealogy program
|
|
|
|
#
|
2005-07-09 01:54:54 +05:30
|
|
|
# Copyright (C) 2003-2005 Donald N. Allingham
|
2004-01-08 10:48:27 +05:30
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
2004-01-09 07:59:57 +05:30
|
|
|
# $Id$
|
|
|
|
|
2004-01-08 10:48:27 +05:30
|
|
|
# Written by Alex Roitman, largely based on Relationship.py by Don Allingham.
|
|
|
|
# and on valuable input from Dr. Martin Senftleben
|
2007-05-04 03:05:13 +05:30
|
|
|
# Modified by Joachim Breitner to not use „Großcousine“, in accordance with
|
|
|
|
# http://de.wikipedia.org/wiki/Verwandtschaftsbeziehung
|
2004-01-08 10:48:27 +05:30
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# GRAMPS modules
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2007-10-08 22:11:39 +05:30
|
|
|
import gen.lib
|
2004-02-16 04:14:50 +05:30
|
|
|
import Relationship
|
2004-02-17 10:17:24 +05:30
|
|
|
import types
|
2006-03-11 06:42:06 +05:30
|
|
|
from PluginUtils import register_relcalc
|
2004-01-08 10:48:27 +05:30
|
|
|
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# German-specific definitions of relationships
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
_removed_level = [ "",
|
|
|
|
"", # " ersten Grades", but is usually omitted
|
|
|
|
" zweiten Grades",
|
|
|
|
" dritten Grades",
|
|
|
|
" vierten Grades",
|
|
|
|
" fünften Grades",
|
|
|
|
" sechsten Grades",
|
|
|
|
" siebten Grades",
|
|
|
|
" achten Grades",
|
|
|
|
" neunten Grades",
|
|
|
|
" zehnten Grades",
|
|
|
|
" elften Grades",
|
|
|
|
" zwölften Grades",
|
|
|
|
" dreizehnten Grades",
|
|
|
|
" vierzehnten Grades",
|
|
|
|
" fünfzehnten Grades",
|
|
|
|
" sechzehnten Grades",
|
|
|
|
" siebzehnten Grades",
|
|
|
|
" achtzehnten Grades",
|
|
|
|
" neunzehnten Grades",
|
|
|
|
" zwanzigsten Grades",
|
|
|
|
]
|
2004-01-08 10:48:27 +05:30
|
|
|
|
|
|
|
_father_level = [ "", "Vater (Ebene 1)", "Großvater (Ebene 2)", "Urgroßvater (Ebene 3)",
|
|
|
|
"Altvater (Ebene 4)", "Altgroßvater (Ebene 5)", "Alturgroßvater (Ebene 6)",
|
|
|
|
"Obervater (Ebene 7)", "Obergroßvater (Ebene 8)", "Oberurgroßvater (Ebene 9)",
|
|
|
|
"Stammvater (Ebene 10)", "Stammgroßvater (Ebene 11)", "Stammurgroßvater (Ebene 12)",
|
|
|
|
"Ahnenvater (Ebene 13)", "Ahnengroßvater (Ebene 14)", "Ahnenurgroßvater (Ebene 15)",
|
|
|
|
"Urahnenvater (Ebene 16)", "Urahnengroßvater (Ebene 17)", "Urahnenurgroßvater (Ebene 18)",
|
|
|
|
"Erzvater (Ebene 19)", "Erzgroßvater (Ebene 20)", "Erzurgroßvater (Ebene 21)",
|
|
|
|
"Erzahnenvater (Ebene 22)", "Erzahnengroßvater (Ebene 23)", "Erzahnenurgroßvater (Ebene 24)" ]
|
|
|
|
|
|
|
|
_mother_level = [ "", "Mutter (Ebene 1)", "Großmutter (Ebene 2)", "Urgroßmutter (Ebene 3)",
|
|
|
|
"Altmutter (Ebene 4)", "Altgroßmutter (Ebene 5)", "Alturgroßmutter (Ebene 6)",
|
|
|
|
"Obermutter (Ebene 7)", "Obergroßmutter (Ebene 8)", "Oberurgroßmutter (Ebene 9)",
|
|
|
|
"Stammmutter (Ebene 10)", "Stammgroßmutter (Ebene 11)", "Stammurgroßmutter (Ebene 12)",
|
|
|
|
"Ahnenmutter (Ebene 13)", "Ahnengroßmutter (Ebene 14)", "Ahnenurgroßmutter (Ebene 15)",
|
|
|
|
"Urahnenmutter (Ebene 16)", "Urahnengroßmutter (Ebene 17)", "Urahnenurgroßmutter (Ebene 18)",
|
|
|
|
"Erzmutter (Ebene 19)", "Erzgroßmutter (Ebene 20)", "Erzurgroßmutter (Ebene 21)",
|
2004-01-09 07:59:04 +05:30
|
|
|
"Erzahnenmutter (Ebene 22)", "Erzahnengroßmutter (Ebene 23)",
|
|
|
|
"Erzahnenurgroßmutter (Ebene 24)" ]
|
|
|
|
|
|
|
|
_son_level = [ "", "Sohn",
|
|
|
|
"Enkel",
|
|
|
|
"Urenkel",
|
|
|
|
"Ururenkel",
|
2007-08-25 04:46:26 +05:30
|
|
|
"Urururenkel",
|
|
|
|
"Ururururenkel",
|
2004-01-09 07:59:04 +05:30
|
|
|
"Urururururenkel",
|
|
|
|
"Ururururururenkel",
|
|
|
|
"Urururururururenkel",
|
|
|
|
"Ururururururururenkel",
|
|
|
|
"Urururururururururenkel",
|
|
|
|
"Ururururururururururenkel",
|
|
|
|
"Urururururururururururenkel",
|
|
|
|
"Ururururururururururururenkel",
|
|
|
|
"Urururururururururururururenkel",
|
|
|
|
"Ururururururururururururururenkel",
|
|
|
|
"Urururururururururururururururenkel",
|
|
|
|
"Ururururururururururururururururenkel",
|
|
|
|
"Urururururururururururururururururenkel",
|
|
|
|
"Ururururururururururururururururururenkel",
|
|
|
|
"Urururururururururururururururururururenkel",
|
|
|
|
"Ururururururururururururururururururururenkel",
|
|
|
|
"Urururururururururururururururururururururenkel",
|
|
|
|
]
|
|
|
|
|
|
|
|
_daughter_level = [ "", "Tochter",
|
|
|
|
"Enkelin",
|
|
|
|
"Urenkelin",
|
|
|
|
"Ururenkelin",
|
2007-08-25 04:46:26 +05:30
|
|
|
"Urururenkelin",
|
|
|
|
"Ururururenkelin",
|
2004-01-09 07:59:04 +05:30
|
|
|
"Urururururenkelin",
|
|
|
|
"Ururururururenkelin",
|
|
|
|
"Urururururururenkelin",
|
|
|
|
"Ururururururururenkelin",
|
|
|
|
"Urururururururururenkelin",
|
|
|
|
"Ururururururururururenkelin",
|
|
|
|
"Urururururururururururenkelin",
|
|
|
|
"Ururururururururururururenkelin",
|
|
|
|
"Urururururururururururururenkelin",
|
|
|
|
"Ururururururururururururururenkelin",
|
|
|
|
"Urururururururururururururururenkelin",
|
|
|
|
"Ururururururururururururururururenkelin",
|
|
|
|
"Urururururururururururururururururenkelin",
|
|
|
|
"Ururururururururururururururururururenkelin",
|
|
|
|
"Urururururururururururururururururururenkelin",
|
|
|
|
"Ururururururururururururururururururururenkelin",
|
|
|
|
"Urururururururururururururururururururururenkelin",
|
|
|
|
]
|
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
_aunt_level = [ "", "Tante",
|
2004-01-09 07:59:04 +05:30
|
|
|
"Großtante",
|
|
|
|
"Urgroßtante",
|
|
|
|
"Ururgroßtante",
|
|
|
|
"Urururgroßtante",
|
|
|
|
"Ururururgroßtante",
|
|
|
|
"Urururururgroßtante",
|
|
|
|
"Ururururururgroßtante",
|
|
|
|
"Urururururururgroßtante",
|
|
|
|
"Ururururururururgroßtante",
|
|
|
|
"Urururururururururgroßtante",
|
|
|
|
"Ururururururururururgroßtante",
|
|
|
|
"Urururururururururururgroßtante",
|
|
|
|
"Ururururururururururururgroßtante",
|
|
|
|
"Urururururururururururururgroßtante",
|
|
|
|
"Ururururururururururururururgroßtante",
|
|
|
|
"Urururururururururururururururgroßtante",
|
|
|
|
"Ururururururururururururururururgroßtante",
|
|
|
|
"Urururururururururururururururururgroßtante",
|
|
|
|
"Ururururururururururururururururururgroßtante",
|
|
|
|
"Urururururururururururururururururururgroßtante",
|
|
|
|
"Ururururururururururururururururururururgroßtante",
|
|
|
|
]
|
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
_uncle_level = [ "", "Onkel",
|
2004-01-09 07:59:04 +05:30
|
|
|
"Großonkel",
|
|
|
|
"Urgroßonkel",
|
|
|
|
"Ururgroßonkel",
|
|
|
|
"Urururgroßonkel",
|
|
|
|
"Ururururgroßonkel",
|
|
|
|
"Urururururgroßonkel",
|
|
|
|
"Ururururururgroßonkel",
|
|
|
|
"Urururururururgroßonkel",
|
|
|
|
"Ururururururururgroßonkel",
|
|
|
|
"Urururururururururgroßonkel",
|
|
|
|
"Ururururururururururgroßonkel",
|
|
|
|
"Urururururururururururgroßonkel",
|
|
|
|
"Ururururururururururururgroßonkel",
|
|
|
|
"Urururururururururururururgroßonkel",
|
|
|
|
"Ururururururururururururururgroßonkel",
|
|
|
|
"Urururururururururururururururgroßonkel",
|
|
|
|
"Ururururururururururururururururgroßonkel",
|
|
|
|
"Urururururururururururururururururgroßonkel",
|
|
|
|
"Ururururururururururururururururururgroßonkel",
|
|
|
|
"Urururururururururururururururururururgroßonkel",
|
|
|
|
"Ururururururururururururururururururururgroßonkel",
|
|
|
|
]
|
|
|
|
|
|
|
|
_nephew_level = [ "", "Neffe",
|
|
|
|
"Großneffe",
|
|
|
|
"Urgroßneffe",
|
|
|
|
"Ururgroßneffe",
|
|
|
|
"Urururgroßneffe",
|
|
|
|
"Ururururgroßneffe",
|
|
|
|
"Urururururgroßneffe",
|
|
|
|
"Ururururururgroßneffe",
|
|
|
|
"Urururururururgroßneffe",
|
|
|
|
"Ururururururururgroßneffe",
|
|
|
|
"Urururururururururgroßneffe",
|
|
|
|
"Ururururururururururgroßneffe",
|
|
|
|
"Urururururururururururgroßneffe",
|
|
|
|
"Ururururururururururururgroßneffe",
|
|
|
|
"Urururururururururururururgroßneffe",
|
|
|
|
"Ururururururururururururururgroßneffe",
|
|
|
|
"Urururururururururururururururgroßneffe",
|
|
|
|
"Ururururururururururururururururgroßneffe",
|
|
|
|
"Urururururururururururururururururgroßneffe",
|
|
|
|
"Ururururururururururururururururururgroßneffe",
|
|
|
|
"Urururururururururururururururururururgroßneffe",
|
|
|
|
"Ururururururururururururururururururururgroßneffe",
|
|
|
|
]
|
|
|
|
|
|
|
|
_niece_level = [ "", "Nichte",
|
|
|
|
"Großnichte",
|
|
|
|
"Urgroßnichte",
|
|
|
|
"Ururgroßnichte",
|
|
|
|
"Urururgroßnichte",
|
|
|
|
"Ururururgroßnichte",
|
|
|
|
"Urururururgroßnichte",
|
|
|
|
"Ururururururgroßnichte",
|
|
|
|
"Urururururururgroßnichte",
|
|
|
|
"Ururururururururgroßnichte",
|
|
|
|
"Urururururururururgroßnichte",
|
|
|
|
"Ururururururururururgroßnichte",
|
|
|
|
"Urururururururururururgroßnichte",
|
|
|
|
"Ururururururururururururgroßnichte",
|
|
|
|
"Urururururururururururururgroßnichte",
|
|
|
|
"Ururururururururururururururgroßnichte",
|
|
|
|
"Urururururururururururururururgroßnichte",
|
|
|
|
"Ururururururururururururururururgroßnichte",
|
|
|
|
"Urururururururururururururururururgroßnichte",
|
|
|
|
"Ururururururururururururururururururgroßnichte",
|
|
|
|
"Urururururururururururururururururururgroßnichte",
|
|
|
|
]
|
2004-01-08 10:48:27 +05:30
|
|
|
|
2004-02-16 04:14:50 +05:30
|
|
|
_parents_level = [ "", "Eltern", "Großeltern", "Urgroßeltern",
|
|
|
|
"Alteltern", "Altgroßeltern", "Alturgroßeltern", "Obereltern",
|
|
|
|
"Obergroßeltern", "Oberurgroßeltern", "Stammeltern", "Stammgroßeltern",
|
|
|
|
"Stammurgroßeltern", "Ahneneltern", "Ahnengroßeltern", "Ahnenurgroßeltern",
|
|
|
|
"Urahneneltern", "Urahnengroßeltern", "Urahnenurgroßeltern",
|
|
|
|
"Erzeltern", "Erzgroßeltern", "Erzurgroßeltern", "Erzahneneltern",
|
|
|
|
"Erzahnengroßeltern", "Erzahnenurgroßeltern",
|
|
|
|
]
|
|
|
|
|
2004-01-08 10:48:27 +05:30
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2004-02-16 04:14:50 +05:30
|
|
|
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
2004-01-08 10:48:27 +05:30
|
|
|
|
2007-08-18 19:01:50 +05:30
|
|
|
def __init__(self):
|
|
|
|
Relationship.RelationshipCalculator.__init__(self)
|
2004-02-16 04:14:50 +05:30
|
|
|
|
|
|
|
def get_parents(self,level):
|
|
|
|
if level>len(_parents_level)-1:
|
|
|
|
return "remote ancestors"
|
|
|
|
else:
|
|
|
|
return _parents_level[level]
|
|
|
|
|
|
|
|
def get_father(self,level):
|
|
|
|
if level>len(_father_level)-1:
|
|
|
|
return "remote ancestor"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2004-02-16 04:14:50 +05:30
|
|
|
return _father_level[level]
|
|
|
|
|
|
|
|
def get_son(self,level):
|
|
|
|
if level>len(_son_level)-1:
|
|
|
|
return "remote descendant"
|
|
|
|
else:
|
|
|
|
return _son_level[level]
|
|
|
|
|
|
|
|
def get_mother(self,level):
|
|
|
|
if level>len(_mother_level)-1:
|
|
|
|
return "remote ancestor"
|
|
|
|
else:
|
|
|
|
return _mother_level[level]
|
|
|
|
|
|
|
|
def get_daughter(self,level):
|
|
|
|
if level>len(_daughter_level)-1:
|
|
|
|
return "remote descendant"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2004-02-16 04:14:50 +05:30
|
|
|
return _daughter_level[level]
|
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
def get_aunt(self,level,removed):
|
|
|
|
if level>len(_aunt_level)-1 or removed > len(_removed_level)-1:
|
2004-02-16 04:14:50 +05:30
|
|
|
return "remote ancestor"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return _aunt_level[level] + _removed_level[removed]
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
def get_uncle(self,level,removed):
|
|
|
|
if level>len(_uncle_level)-1 or removed > len(_removed_level)-1:
|
2004-02-16 04:14:50 +05:30
|
|
|
return "remote ancestor"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return _uncle_level[level] + _removed_level[removed]
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
def get_niece(self,level,removed):
|
|
|
|
if level>len(_niece_level)-1 or removed > len(_removed_level)-1:
|
|
|
|
return "remote ancestor"
|
|
|
|
else:
|
|
|
|
return _niece_level[level] + _removed_level[removed]
|
|
|
|
|
|
|
|
def get_nephew(self,level,removed):
|
|
|
|
if level>len(_nephew_level)-1 or removed > len(_removed_level)-1:
|
|
|
|
return "remote ancestor"
|
|
|
|
else:
|
|
|
|
return _nephew_level[level] + _removed_level[removed]
|
|
|
|
|
|
|
|
def get_male_cousin(self,removed):
|
|
|
|
if removed>len(_removed_level)-1:
|
2004-02-16 04:14:50 +05:30
|
|
|
return "remote descendant"
|
2007-05-04 03:05:13 +05:30
|
|
|
elif removed==0:
|
|
|
|
return "Bruder"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return "Cousin"+_removed_level[removed]
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2007-05-04 03:05:13 +05:30
|
|
|
def get_female_cousin(self,removed):
|
|
|
|
if removed>len(_removed_level)-1:
|
2004-02-16 04:14:50 +05:30
|
|
|
return "remote descendant"
|
2007-05-04 03:05:13 +05:30
|
|
|
elif removed==0:
|
|
|
|
return "Schwester"
|
2004-01-08 10:48:27 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return "Cousine"+_removed_level[removed]
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2008-02-24 19:25:55 +05:30
|
|
|
def get_relationship(self,db, orig_person, other_person):
|
2004-02-16 04:14:50 +05:30
|
|
|
"""
|
2008-02-24 19:25:55 +05:30
|
|
|
Return a string representing the relationshp between the two people,
|
2004-02-16 04:14:50 +05:30
|
|
|
along with a list of common ancestors (typically father,mother)
|
|
|
|
|
|
|
|
Special cases: relation strings "", "undefined" and "spouse".
|
|
|
|
"""
|
|
|
|
|
|
|
|
if orig_person == None:
|
|
|
|
return ("undefined",[])
|
2004-01-08 10:48:27 +05:30
|
|
|
|
2004-08-21 09:01:51 +05:30
|
|
|
if orig_person.get_handle() == other_person.get_handle():
|
2004-02-16 04:14:50 +05:30
|
|
|
return ('', [])
|
2004-02-17 10:17:24 +05:30
|
|
|
|
2008-02-24 19:25:55 +05:30
|
|
|
is_spouse = self.is_spouse(db, orig_person, other_person)
|
2005-07-09 01:54:54 +05:30
|
|
|
if is_spouse:
|
|
|
|
return (is_spouse,[])
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2007-10-24 18:22:07 +05:30
|
|
|
#get_relationship_distance changed, first data is relation to
|
|
|
|
#orig person, apperently secondRel in this function
|
|
|
|
(secondRel,firstRel,common) = \
|
2008-02-24 19:25:55 +05:30
|
|
|
self.get_relationship_distance(db, orig_person, other_person)
|
2004-02-17 10:17:24 +05:30
|
|
|
|
2007-08-18 19:01:50 +05:30
|
|
|
if type(common) == types.StringType or \
|
|
|
|
type(common) == types.UnicodeType:
|
2004-02-17 10:17:24 +05:30
|
|
|
return (common,[])
|
|
|
|
elif common:
|
2004-07-28 07:59:07 +05:30
|
|
|
person_handle = common[0]
|
2004-02-17 10:17:24 +05:30
|
|
|
else:
|
2004-02-16 04:14:50 +05:30
|
|
|
return ("",[])
|
2004-02-17 10:17:24 +05:30
|
|
|
|
2004-08-21 00:40:01 +05:30
|
|
|
firstRel = len(firstRel)
|
|
|
|
secondRel = len(secondRel)
|
|
|
|
|
2004-02-17 10:17:24 +05:30
|
|
|
if firstRel == 0:
|
2004-02-16 04:14:50 +05:30
|
|
|
if secondRel == 0:
|
|
|
|
return ('',common)
|
2007-10-08 22:11:39 +05:30
|
|
|
elif other_person.get_gender() == gen.lib.Person.MALE:
|
2004-02-16 04:14:50 +05:30
|
|
|
return (self.get_father(secondRel),common)
|
|
|
|
else:
|
|
|
|
return (self.get_mother(secondRel),common)
|
|
|
|
elif secondRel == 0:
|
2007-10-08 22:11:39 +05:30
|
|
|
if other_person.get_gender() == gen.lib.Person.MALE:
|
2004-02-16 04:14:50 +05:30
|
|
|
return (self.get_son(firstRel),common)
|
|
|
|
else:
|
|
|
|
return (self.get_daughter(firstRel),common)
|
2007-05-04 03:05:13 +05:30
|
|
|
elif secondRel > firstRel:
|
2007-10-08 22:11:39 +05:30
|
|
|
if other_person.get_gender() == gen.lib.Person.MALE:
|
2007-05-04 03:05:13 +05:30
|
|
|
return (self.get_uncle(secondRel-firstRel,firstRel),common)
|
2004-02-16 04:14:50 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return (self.get_aunt(secondRel-firstRel,firstRel),common)
|
|
|
|
elif secondRel < firstRel:
|
2007-10-08 22:11:39 +05:30
|
|
|
if other_person.get_gender() == gen.lib.Person.MALE:
|
2007-05-04 03:05:13 +05:30
|
|
|
return (self.get_nephew(firstRel-secondRel,secondRel),common)
|
2004-02-16 04:14:50 +05:30
|
|
|
else:
|
2008-01-06 01:40:26 +05:30
|
|
|
return (self.get_niece(firstRel-secondRel,secondRel),common)
|
2007-05-04 03:05:13 +05:30
|
|
|
else: # obviously secondRel == firstRel
|
2007-10-08 22:11:39 +05:30
|
|
|
if other_person.get_gender() == gen.lib.Person.MALE:
|
2007-05-04 03:05:13 +05:30
|
|
|
return (self.get_male_cousin(firstRel-1),common)
|
2004-02-16 04:14:50 +05:30
|
|
|
else:
|
2007-05-04 03:05:13 +05:30
|
|
|
return (self.get_female_cousin(firstRel-1),common)
|
2004-02-16 04:14:50 +05:30
|
|
|
|
2004-01-08 10:48:27 +05:30
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2004-02-16 04:14:50 +05:30
|
|
|
# Register this class with the Plugins system
|
2004-01-08 10:48:27 +05:30
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2004-02-16 04:14:50 +05:30
|
|
|
register_relcalc(RelationshipCalculator,
|
2004-01-08 10:48:27 +05:30
|
|
|
["de","DE","de_DE","deutsch","Deutsch","de_DE.UTF8","de_DE@euro","de_DE.UTF8@euro",
|
2004-01-09 22:09:31 +05:30
|
|
|
"german","German", "de_DE.UTF-8", "de_DE.utf-8", "de_DE.utf8"])
|