[svn r1583] Update changelog.
#!/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 my_db
import os
def main(prefs):
    tmpl = TemplateManager().prepare("prefs.tmpl")
    tproc = get_template_processor(prefs)
    fields = []
    for field in ['keyword', 'count']:
      fields.append({'field': field,
                     'selected' : prefs['keywords_sort'] == field })
    tproc.set('Sortfields', fields)
    print tproc.process(tmpl)
if (__name__ == "__main__"):
    db = my_db.connect(os.environ["REMOTE_USER"])
    main(db.get_preferences())