diff -r 7b7cd0e74ee3 -r 6d31ed0f6ad3 add.py --- a/add.py Fri Oct 10 11:38:20 2003 -0400 +++ b/add.py Sun Oct 12 10:55:22 2003 -0400 @@ -11,16 +11,16 @@ # import cgitb; cgitb.enable() import cgi -from htmltmpl import TemplateManager, TemplateProcessor +from htmltmpl import TemplateManager +from webutils import get_template_processor; import my_db import time from bkmark import Bookmark import os -def main(keywords, title, url): +def main(keywords, title, url, prefs): tmpl = TemplateManager().prepare("add_bk.tmpl") - tproc = TemplateProcessor() - tproc.set("pagetitle", os.environ["REMOTE_USER"]+"'s XBELWeb Edit Bookmark") + tproc = get_template_processor(prefs) tproc.set('ctitle', title) tproc.set('curl', url) tproc.set('desc', '') @@ -42,4 +42,4 @@ 'id' : elem[0], 'keyword' : elem[1], 'checked' : 0 }, kw) - main(kw, name, url) + main(kw, name, url, db.get_preferences())