equal
deleted
inserted
replaced
|
1 #!/usr/bin/python |
|
2 |
|
3 import sys |
|
4 import traceback |
|
5 sys.path.insert(0, "/home/fabien/lib/python") |
|
6 sys.path.insert(0, "./lib") |
|
7 sys.stderr = sys.stdout |
|
8 |
|
9 print "Content-type: text/html; charset=iso-8859-1;" |
|
10 print |
|
11 |
|
12 # import cgitb; cgitb.enable() |
|
13 import cgi |
|
14 from htmltmpl import TemplateManager, TemplateProcessor |
|
15 import os |
|
16 |
|
17 def main(): |
|
18 tmpl = TemplateManager().prepare("import.tmpl") |
|
19 tproc = TemplateProcessor() |
|
20 tproc.set("pagetitle", os.environ["REMOTE_USER"]+"'s XBELWeb Import File") |
|
21 print tproc.process(tmpl) |
|
22 |
|
23 if (__name__ == "__main__"): |
|
24 main() |