import.py
author fabien
Fri, 24 Oct 2003 17:04:29 -0400
branchxbelweb
changeset 47 2781ac85b807
parent 43 4d194fce51e1
permissions -rwxr-xr-x
[svn r1604] Implement default_view preferences, which move things around a lot.

#!/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()