[Mpuls-commits] r5734 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 22 13:39:21 CET 2011


Author: bricks
Date: 2011-12-22 13:39:19 +0100 (Thu, 22 Dec 2011)
New Revision: 5734

Modified:
   base/trunk/mpulsweb/controllers/casedocument.py
   base/trunk/mpulsweb/controllers/document.py
Log:
Add a warning about the document error

This helps to find a possible error in a document upload.


Modified: base/trunk/mpulsweb/controllers/casedocument.py
===================================================================
--- base/trunk/mpulsweb/controllers/casedocument.py	2011-12-22 10:34:01 UTC (rev 5733)
+++ base/trunk/mpulsweb/controllers/casedocument.py	2011-12-22 12:39:19 UTC (rev 5734)
@@ -82,6 +82,7 @@
             c.form_result = error.value
             c.form_errors = error.error_dict or {}
             log.debug(c.form_result)
+            log.warn("Invalid form data for case document %s" % c.form_errors)
             form = render('/documents/case_new.mako')
             return formencode.htmlfill.render(form,
                                               defaults=c.form_result,

Modified: base/trunk/mpulsweb/controllers/document.py
===================================================================
--- base/trunk/mpulsweb/controllers/document.py	2011-12-22 10:34:01 UTC (rev 5733)
+++ base/trunk/mpulsweb/controllers/document.py	2011-12-22 12:39:19 UTC (rev 5734)
@@ -101,6 +101,7 @@
             c.form_result = error.value
             c.form_errors = error.error_dict or {}
             log.debug(c.form_result)
+            log.warn("Invalid form data for document %s" % c.form_errors)
             form = render('/documents/global_upload.mako')
             return formencode.htmlfill.render(form,
                                               defaults=c.form_result,



More information about the Mpuls-commits mailing list