* src/plugins/lineage.py: gen variable conflicts with module gen
2007-10-25 Benny Malengier <benny.malengier@gramps-project.org> svn: r9247
This commit is contained in:
parent
1763ff94ef
commit
256e67cb6c
@ -1,3 +1,6 @@
|
|||||||
|
2007-10-25 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
|
* src/plugins/lineage.py: gen variable conflicts with module gen
|
||||||
|
|
||||||
2007-10-25 Benny Malengier <benny.malengier@gramps-project.org>
|
2007-10-25 Benny Malengier <benny.malengier@gramps-project.org>
|
||||||
* src/plugins/all_relations.py: don't import RelLib
|
* src/plugins/all_relations.py: don't import RelLib
|
||||||
|
|
||||||
|
@ -168,13 +168,13 @@ def make_details_child(gender, person, sa, sd, database) :
|
|||||||
""" Function that prints the details of the children in the
|
""" Function that prints the details of the children in the
|
||||||
male/female lineage
|
male/female lineage
|
||||||
"""
|
"""
|
||||||
def make_child_line(child, prepend, gen) :
|
def make_child_line(child, prepend, generation) :
|
||||||
""" Recursively called funcion to write one child line
|
""" Recursively called funcion to write one child line
|
||||||
Person is the child, prepend is the string that preceeds it
|
Person is the child, prepend is the string that preceeds it
|
||||||
on print. As the recursion grows, prepend is increased
|
on print. As the recursion grows, prepend is increased
|
||||||
Gen is the generation level
|
Gen is the generation level
|
||||||
"""
|
"""
|
||||||
if gen > __MAX_GEN :
|
if generation > __MAX_GEN :
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
#we use some global var from make_details_child !
|
#we use some global var from make_details_child !
|
||||||
rem_str = ""
|
rem_str = ""
|
||||||
@ -213,7 +213,7 @@ def make_details_child(gender, person, sa, sd, database) :
|
|||||||
newchild = database.get_person_from_handle(childdet[0])
|
newchild = database.get_person_from_handle(childdet[0])
|
||||||
# person must have the required gender
|
# person must have the required gender
|
||||||
if newchild and newchild.gender == gender :
|
if newchild and newchild.gender == gender :
|
||||||
make_child_line(newchild, prepend + ' |', gen+1)
|
make_child_line(newchild, prepend + ' |', generation+1)
|
||||||
|
|
||||||
# loop over all children of gender and output, start with no prepend
|
# loop over all children of gender and output, start with no prepend
|
||||||
try :
|
try :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user