import.py
author fabien
Fri, 17 Oct 2003 15:05:17 -0400
branchxbelweb
changeset 44 87f94936990d
parent 43 4d194fce51e1
child 47 2781ac85b807
permissions -rwxr-xr-x
[svn r1600] Add display name to preferences.

#!/usr/bin/python

import sys
import traceback
sys.path.insert(0, "/home/fabien/lib/python")
sys.path.insert(0, "./lib")
sys.stderr = sys.stdout

print "Content-type: text/html; charset=iso-8859-1;"
print

# import cgitb; cgitb.enable()
import cgi
from htmltmpl import TemplateManager
from webutils import get_template_processor
import os

def main():
    tmpl = TemplateManager().prepare("import.tmpl")
    tproc = get_template_processor()
    print tproc.process(tmpl)

if (__name__ == "__main__"):
    main()