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