[Mpuls-commits] r382 - wasko/trunk/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Mar 17 15:45:30 CET 2009


Author: torsten
Date: 2009-03-17 15:45:28 +0100 (Tue, 17 Mar 2009)
New Revision: 382

Modified:
   wasko/trunk/waskaweb/controllers/caselifetime.py
Log:
Call index controller after setting the extratime


Modified: wasko/trunk/waskaweb/controllers/caselifetime.py
===================================================================
--- wasko/trunk/waskaweb/controllers/caselifetime.py	2009-03-17 14:23:04 UTC (rev 381)
+++ wasko/trunk/waskaweb/controllers/caselifetime.py	2009-03-17 14:45:28 UTC (rev 382)
@@ -73,7 +73,7 @@
 
 class CaselifetimeController(BaseController):
 
-    def index(self, id):
+    def index(self, id=None):
         # Return a rendered template
         #   return render('/some/template.mako')
         # or, Return a response
@@ -127,12 +127,11 @@
             # Pflichtfeldangaben scheinen ok -> setzen der Daten
             try:
                 c.casedata.setData(form_result)
-                print "Setzen der Daten scheint ok! %s" % form_result
+                return self.index()
             except Exception, err:
                 traceback.print_exc(file=sys.stderr)
                 print "Fehler beim Setzen der Datan %s: " % err
         except formencode.Invalid, error:
-            print error
             form_result = error.value
             form_errors = error.error_dict or {}
 



More information about the Mpuls-commits mailing list