chiark / gitweb /
adding cgiFiles to repo
[familyTree.git] / cgiFiles / descendants.py
diff --git a/cgiFiles/descendants.py b/cgiFiles/descendants.py
new file mode 100755 (executable)
index 0000000..3189d21
--- /dev/null
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+
+# enable debugging
+import cgi
+#import cgitb
+import sys
+import re
+sys.path.append('/home/naath/familyTreeProject/familyTree')
+import askQuestion
+import everyPage
+
+[conn,form]=everyPage.top()
+
+ID = form.getvalue('ID')
+if ID == None:
+        ID = 1
+
+printMe = askQuestion.all_descendants(ID,'<br>')[0]
+        
+       
+if len(printMe)<10:
+       printMe =  'sorry, no data <br>'
+
+everyPage.good(printMe)
+
+
+everyPage.bottom()