7 sys.path.append('/home/naath/familyTreeProject/familyTree')
9 import askQuestion as aQ
10 import graphQuestions as gQ
14 def make_graph(ID,ID2):
18 mrca,otherRCA,lA,lB = gQ.relationship(ID,ID2)
20 nodes = gQ.join_up([ID,ID2],mrca+otherRCA)
24 [Self, selfID, selfName] = aQ.find_person(node)
26 if node==ID or node==ID2 or node in mrca or node in otherRCA:
29 [ps,pIDs,pNames] = aQ.find_parents(node)
30 if node not in mrca+otherRCA:
31 d.add_marriage(ps[0],ps[1],[Self],1)
32 elif (pIDs[0] in mrca+otherRCA) or (pIDs[1] in mrca+otherRCA):
33 d.add_marriage(ps[0],ps[1],[Self],1)
50 form = cgi.FieldStorage()
52 ID = int(form.getvalue('id'))
53 ID2 = int(form.getvalue('id2'))
54 maxLevel = int(int(form.getvalue('mL')))