# HG changeset patch
# User fabien
# Date 1065971491 14400
# Node ID 4d194fce51e168cbbe512f88a62fd74cee09da8e
# Parent 6d31ed0f6ad340b468dc13dfe4b29f2b1ddffc19
[svn r1594] Update to use user's preferences.
diff -r 6d31ed0f6ad3 -r 4d194fce51e1 add_confirm.py
--- a/add_confirm.py Sun Oct 12 10:55:22 2003 -0400
+++ b/add_confirm.py Sun Oct 12 11:11:31 2003 -0400
@@ -13,7 +13,8 @@
# 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
@@ -56,10 +57,9 @@
kw = unique(kw)
return kw
-def main(action, bk, kw):
+def main(action, bk, kw, prefs):
tmpl = TemplateManager().prepare("add_confirm.tmpl")
- tproc = TemplateProcessor()
- tproc.set("pagetitle", os.environ["REMOTE_USER"]+"'s XBELWeb Confirmation")
+ tproc = get_template_processor(prefs)
tproc.set("confirm_delete", action == 'delete')
tproc.set("confirm_update", action == 'update')
tproc.set("action", action)
@@ -84,5 +84,5 @@
bk = db.get_bookmarks([id])[0]
(ids, kw) = apply(zip,db.get_keywords([id]))
kw = kw[1:]
- main(action, bk, kw)
+ main(action, bk, kw, db.get_preferences())
diff -r 6d31ed0f6ad3 -r 4d194fce51e1 add_confirm.tmpl
--- a/add_confirm.tmpl Sun Oct 12 10:55:22 2003 -0400
+++ b/add_confirm.tmpl Sun Oct 12 11:11:31 2003 -0400
@@ -2,7 +2,7 @@
+
Retour à la page principale
+Back to the main page