[Mpuls-commits] r1126 - in wasko/branches/2.0: . waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 12:17:30 CET 2010


Author: bh
Date: 2010-02-02 12:17:28 +0100 (Tue, 02 Feb 2010)
New Revision: 1126

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/controllers/case.py
Log:
* waskaweb/controllers/case.py (CaseController.newAction): Remove
some debug prints and turn some of them into log.debug calls.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-02 11:16:44 UTC (rev 1125)
+++ wasko/branches/2.0/ChangeLog	2010-02-02 11:17:28 UTC (rev 1126)
@@ -1,5 +1,10 @@
 2010-02-02  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/controllers/case.py (CaseController.newAction): Remove
+	some debug prints and turn some of them into log.debug calls.
+
+2010-02-02  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/controllers/case.py (CaseController.digest):
 	c.print_form is not used anywhere, so don't set it.
 

Modified: wasko/branches/2.0/waskaweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 11:16:44 UTC (rev 1125)
+++ wasko/branches/2.0/waskaweb/controllers/case.py	2010-02-02 11:17:28 UTC (rev 1126)
@@ -390,27 +390,21 @@
                 # 1. Create a new case
                 factory = CaseFactory()
                 case = factory.createNew(data=form_result)
-                print "7"
                 statement = case.getPrivacyStatement()
-                print "8"
 
                 # 2. Do we want to sign the statement?
                 if form_result.get('statement_signed'):
                     statement.sign()
 
-                print "9"
                 self.__init_case(case.id)
-                print "10"
                 load_case(case.id)
-                print "11"
 
             except formencode.Invalid, error:
-                print error
+                log.debug("Invalid form data: %r", error)
                 c.form_result = error.value
                 c.form_errors = error.error_dict or {}
                 return render('/casemanagement/new.mako')
 
-        print "12"
         return self.select(str(case.id))
 
     @checkRole('cm_ka')



More information about the Mpuls-commits mailing list