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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 1 16:26:03 CEST 2010


Author: bh
Date: 2010-04-01 16:25:56 +0200 (Thu, 01 Apr 2010)
New Revision: 2276

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/controllers/repeatgroup.py
Log:
* mpulsweb/controllers/repeatgroup.py
(RepeatgroupController.delete): Make sure the message indicating
successful deletion of the repeat group is only shown when the
repeat was actually successfully deleted.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-04-01 14:18:09 UTC (rev 2275)
+++ wasko/branches/2.0/ChangeLog	2010-04-01 14:25:56 UTC (rev 2276)
@@ -1,5 +1,12 @@
 2010-04-01  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/controllers/repeatgroup.py
+	(RepeatgroupController.delete): Make sure the message indicating
+	successful deletion of the repeat group is only shown when the
+	repeat was actually successfully deleted.
+
+2010-04-01  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/renderer.py (ViewRenderer._checkWarnings): The
 	values of the self.warnings dictionary are now lists so that there
 	can be multiple warnings per field.

Modified: wasko/branches/2.0/mpulsweb/controllers/repeatgroup.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/repeatgroup.py	2010-04-01 14:18:09 UTC (rev 2275)
+++ wasko/branches/2.0/mpulsweb/controllers/repeatgroup.py	2010-04-01 14:25:56 UTC (rev 2276)
@@ -52,14 +52,15 @@
                 log.exception("Error trying to delete repeat group %r:", id)
                 c.status_msg = h.status_message(u"Fehler beim Löschen"
                                                 u" des Datensatzes.")
+            else:
+                c.status_msg = h.status_message(u"Datensatz wurde erfolgreich"
+                                                u" gelöscht.")
 
             # Build new Navigation
             navigation = get_navigation(session['case'].id,
                                         session['navigation.openfolders'])
             session['navigation.tree'] = navigation
             session.save()
-            c.status_msg = h.status_message(u"Datensatz wurde erfolgreich"
-                                            u" gelöscht.")
             return FormularpageController().select(session.get('navigation'
                                                                '.selectedpage'))
         else:



More information about the Mpuls-commits mailing list