[Mpuls-commits] r2222 - in wasko/branches/2.0: . mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 25 20:56:24 CET 2010


Author: bh
Date: 2010-03-25 20:56:21 +0100 (Thu, 25 Mar 2010)
New Revision: 2222

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/controllers/news.py
Log:
* mpulsweb/controllers/news.py: Fix formatting.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-03-25 19:54:37 UTC (rev 2221)
+++ wasko/branches/2.0/ChangeLog	2010-03-25 19:56:21 UTC (rev 2222)
@@ -1,5 +1,9 @@
 2010-03-25  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/news.py: Fix formatting.
+
+2010-03-25  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/controllers/mpuls.py: Fix formatting.
 
 2010-03-25  Bernhard Herzog  <bh at intevation.de>

Modified: wasko/branches/2.0/mpulsweb/controllers/news.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/news.py	2010-03-25 19:54:37 UTC (rev 2221)
+++ wasko/branches/2.0/mpulsweb/controllers/news.py	2010-03-25 19:56:21 UTC (rev 2222)
@@ -2,19 +2,22 @@
 
 import logging
 
-from pylons import request, response, session, tmpl_context as c
-from pylons.controllers.util import abort, redirect_to
+from pylons import session, tmpl_context as c
+from pylons.controllers.util import redirect_to
 
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.model.user import UserObject
 
+
 log = logging.getLogger(__name__)
 
+
 MARK_NEWS_AS_READ_CONFIRM = u"""Nachricht als gelesen markieren"""
 MARK_NEWS_AS_READ_CONFIRM_TEXT = u"""\
 Wollen Sie die Nachricht wirklich als gelesen markieren?
 Sie wird dadurch dauerhaft aus der Übersicht entfernt."""
 
+
 class NewsController(BaseController):
 
     def hide(self, id, confirmed=0):
@@ -31,7 +34,7 @@
             redirect_to(controller='/')
         else:
             c.dialog_title = MARK_NEWS_AS_READ_CONFIRM
-            c.dialog_text  = MARK_NEWS_AS_READ_CONFIRM_TEXT
+            c.dialog_text = MARK_NEWS_AS_READ_CONFIRM_TEXT
             c.url_yes = "/news/hide/%s/1" % id
             c.url_no = "/"
             return render('/news/dialogs/confirm_mark_news_as_read.mako')



More information about the Mpuls-commits mailing list