[Mpuls-commits] r1469 - wasko/branches/2.0/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 10 15:55:24 CET 2010


Author: torsten
Date: 2010-02-10 15:55:22 +0100 (Wed, 10 Feb 2010)
New Revision: 1469

Modified:
   wasko/branches/2.0/mpulsweb/controllers/news.py
Log:
* mpulsweb/controllers/news.py (NewsController.hide): Render confirm dialog from other location.


Modified: wasko/branches/2.0/mpulsweb/controllers/news.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/news.py	2010-02-10 14:54:33 UTC (rev 1468)
+++ wasko/branches/2.0/mpulsweb/controllers/news.py	2010-02-10 14:55:22 UTC (rev 1469)
@@ -36,10 +36,10 @@
             user.setNewsAsRead(id)
             redirect_to(controller='/')
         else:
-            c.confirm_for = MARK_NEWS_AS_READ_CONFIRM
-            c.question = MARK_NEWS_AS_READ_CONFIRM_TEXT
+            c.dialog_title = MARK_NEWS_AS_READ_CONFIRM
+            c.dialog_text  = MARK_NEWS_AS_READ_CONFIRM_TEXT
             c.url_yes = "/news/hide/%s/1" % id
             c.url_no = "/"
-            return render('/start/dialogs/confirm_mark_news_as_read.mako')
+            return render('/news/dialogs/confirm_mark_news_as_read.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:



More information about the Mpuls-commits mailing list