[svn r1611] Optimization of db.get_bookmarks_count which was call too often.
#!/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()