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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 12 10:42:45 CET 2010


Author: torsten
Date: 2010-02-12 10:42:44 +0100 (Fri, 12 Feb 2010)
New Revision: 1528

Modified:
   wasko/branches/2.0/mpulsweb/controllers/formularpage.py
Log:
Removed debugging output


Modified: wasko/branches/2.0/mpulsweb/controllers/formularpage.py
===================================================================
--- wasko/branches/2.0/mpulsweb/controllers/formularpage.py	2010-02-12 08:40:03 UTC (rev 1527)
+++ wasko/branches/2.0/mpulsweb/controllers/formularpage.py	2010-02-12 09:42:44 UTC (rev 1528)
@@ -28,7 +28,6 @@
     if error_items is None:
         return {}
     errors = {}
-    print error_items
     for items in error_items:
         for e in items:
             if e.type == 0:
@@ -39,7 +38,6 @@
     if error_items is None:
         return {}
     errors = {}
-    print error_items
     for items in error_items:
         for e in items:
             if e.type == 1:
@@ -50,13 +48,11 @@
     if error_items is None:
         return {}
     errors = {}
-    print error_items
     for items in error_items:
         for e in items:
             errors[e.name] = e.bad
     return errors
 
-
 def convert2dic(params):
     result = {}
     for i in params:
@@ -96,8 +92,8 @@
                 c.formular = renderer.render(showNext=True)
             else:
                 c.formular = renderer.render(showNext=False)
-        except:
-            print traceback.print_exc()
+        except Exception, e:
+            log.exception(e)
         c.page_id = page.getIdentifier()
         session['case'].setPageId(c.page_id)
         session['navigation.selectedpage'] = id



More information about the Mpuls-commits mailing list