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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Apr 19 16:41:40 CEST 2010


Author: torsten
Date: 2010-04-19 16:41:38 +0200 (Mon, 19 Apr 2010)
New Revision: 2419

Modified:
   wasko/branches/2.0/mpulsweb/controllers/case_bundle.py
Log:
* mpulsweb/controllers/case_bundle.py: Wald. #1406. Fixed returning
error message.


Modified: wasko/branches/2.0/mpulsweb/controllers/case_bundle.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/case_bundle.py	2010-04-19 14:32:06 UTC (rev 2418)
+++ wasko/branches/2.0/mpulsweb/controllers/case_bundle.py	2010-04-19 14:41:38 UTC (rev 2419)
@@ -142,7 +142,7 @@
                 case_bundle = self._filterBundle(case_bundle,
                                                  allowedstates=(3, 4))
                 if case_bundle.isEmpty():
-                    return self._emptyListError()
+                    return self._empty_caselist()
                 session['casebundle'] = case_bundle
                 session.save()
                 return self.restore(0)
@@ -158,7 +158,7 @@
                 # Fiter out case which are not open(1) or inavtice (2)
                 case_bundle = self._filterBundle(case_bundle, (1, 2), filtered)
                 if case_bundle.isEmpty():
-                    return self._emptyListError()
+                    return self._empty_caselist()
                 session['casebundle'] = case_bundle
                 session.save()
 
@@ -176,7 +176,7 @@
                 user = session['USER_AUTHORIZED']
                 case_bundle = self._filterBundle(case_bundle, (1, 2))
                 if case_bundle.isEmpty():
-                    return self._emptyListError()
+                    return self._empty_caselist()
                 session['casebundle'] = case_bundle
                 session.save()
 



More information about the Mpuls-commits mailing list