author | fabien |
Sun, 26 Oct 2003 22:56:49 -0500 | |
branch | xbelweb |
changeset 52 | fe0d02f344cb |
parent 47 | 2781ac85b807 |
permissions | -rwxr-xr-x |
#!/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 templates import Template from os import environ def main(): db = my_db.connect(environ["REMOTE_USER"]) tmpl = Template("import.tmpl", db.get_preferences()) print tmpl.process() if (__name__ == "__main__"): main()