* 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:
Benny Malengier 2007-10-25 20:22:31 +00:00
parent 1763ff94ef
commit 256e67cb6c
2 changed files with 6 additions and 3 deletions

View File

@ -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>
* src/plugins/all_relations.py: don't import RelLib

View File

@ -168,13 +168,13 @@ def make_details_child(gender, person, sa, sd, database) :
""" Function that prints the details of the children in the
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
Person is the child, prepend is the string that preceeds it
on print. As the recursion grows, prepend is increased
Gen is the generation level
"""
if gen > __MAX_GEN :
if generation > __MAX_GEN :
raise RuntimeError
#we use some global var from make_details_child !
rem_str = ""
@ -213,7 +213,7 @@ def make_details_child(gender, person, sa, sd, database) :
newchild = database.get_person_from_handle(childdet[0])
# person must have the required 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
try :