import.py
author fabien
Sun, 12 Oct 2003 11:11:31 -0400
branchxbelweb
changeset 43 4d194fce51e1
parent 26 17b0cd274530
child 47 2781ac85b807
permissions -rwxr-xr-x
[svn r1594] Update to use user's 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()