pylint
svn: r13976
This commit is contained in:
@@ -25,7 +25,9 @@
|
|||||||
|
|
||||||
# Written by Alex Roitman, largely based on Relationship.py by Don Allingham
|
# Written by Alex Roitman, largely based on Relationship.py by Don Allingham
|
||||||
# and on valuable input from Lars Kr. Lundin
|
# and on valuable input from Lars Kr. Lundin
|
||||||
|
"""
|
||||||
|
Specific classes for relationships.
|
||||||
|
"""
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
@@ -75,6 +77,9 @@ _niece_level = [ "", "niecen", "næstsøskendebarnet", "søsterens barnebarn", ]
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
||||||
|
"""
|
||||||
|
RelationshipCalculator Class
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Relationship.RelationshipCalculator.__init__(self)
|
Relationship.RelationshipCalculator.__init__(self)
|
||||||
@@ -176,7 +181,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
|
|||||||
reltocommon_a, reltocommon_b,
|
reltocommon_a, reltocommon_b,
|
||||||
only_birth=True,
|
only_birth=True,
|
||||||
in_law_a=False, in_law_b=False):
|
in_law_a=False, in_law_b=False):
|
||||||
return self.get_relationship(reltocommon_a, reltocommon_b, gender_a, gender_b)[0];
|
return self.get_relationship(reltocommon_a, reltocommon_b, gender_a, gender_b)[0]
|
||||||
|
|
||||||
def get_sibling_relationship_string(self, sib_type, gender_a, gender_b,
|
def get_sibling_relationship_string(self, sib_type, gender_a, gender_b,
|
||||||
in_law_a=False, in_law_b=False):
|
in_law_a=False, in_law_b=False):
|
||||||
|
@@ -29,7 +29,9 @@
|
|||||||
# http://de.wikipedia.org/wiki/Verwandtschaftsbeziehung
|
# http://de.wikipedia.org/wiki/Verwandtschaftsbeziehung
|
||||||
# Rewritten from scratch for GRAMPS 3 by Stefan Siegel,
|
# Rewritten from scratch for GRAMPS 3 by Stefan Siegel,
|
||||||
# loosely based on rel_fr.py
|
# loosely based on rel_fr.py
|
||||||
|
"""
|
||||||
|
German-specific classes for relationships.
|
||||||
|
"""
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# standard python modules
|
# standard python modules
|
||||||
@@ -126,6 +128,9 @@ _schwippschwager = {
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
||||||
|
"""
|
||||||
|
RelationshipCalculator Class
|
||||||
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Relationship.RelationshipCalculator.__init__(self)
|
Relationship.RelationshipCalculator.__init__(self)
|
||||||
|
|
||||||
|
@@ -23,7 +23,9 @@
|
|||||||
# Written by Julio Sanchez <julio.sanchez@gmail.com>
|
# Written by Julio Sanchez <julio.sanchez@gmail.com>
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
"""
|
||||||
|
Spanish-specific classes for relationships.
|
||||||
|
"""
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
@@ -117,6 +119,9 @@ _niece_level = [ "", "sobrina", "sobrina nieta", "sobrina bisnieta", ]
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
class RelationshipCalculator(Relationship.RelationshipCalculator):
|
||||||
|
"""
|
||||||
|
RelationshipCalculator Class
|
||||||
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Relationship.RelationshipCalculator.__init__(self)
|
Relationship.RelationshipCalculator.__init__(self)
|
||||||
|
Reference in New Issue
Block a user