[Mpuls-commits] r3667 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 16 12:01:33 CEST 2010


Author: torsten
Date: 2010-09-16 12:01:32 +0200 (Thu, 16 Sep 2010)
New Revision: 3667

Modified:
   base/trunk/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py (get_unknown_value): Fixed unknown value 
* mpulsweb/model/case.py (MpulsCase.make_anonymizable): Only end phase
id make_consistent does not fail
* mpulsweb/model/case.py (MpulsCase.make_consistent): Added optional
parameter "endphase" to define the phase up to which the case will be
made consistent.


Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py	2010-09-16 10:00:34 UTC (rev 3666)
+++ base/trunk/mpulsweb/model/case.py	2010-09-16 10:01:32 UTC (rev 3667)
@@ -792,11 +792,11 @@
                 item = self.get_formed_item(field.name)
                 try:
                     value = item.getValue()
-                    #log.debug('Current value of %s: %s' % (field.id, value))
+                    log.debug('Current value of %s: %s' % (field.id, value))
                     if value in [-1, "-1", None, ""]:
                         def_value = get_unknown_value(item)
                         if def_value:
-                            #log.debug("Setting %s to %s" % (field.id, def_value))
+                            log.debug("Setting %s to %s" % (field.id, def_value))
                             data["%s" % (field.id)] = def_value
                 except:
                     log.warning('Ups! Tried to get Value from %s which seems to be no field' 
@@ -806,11 +806,11 @@
                 try:
                     item = self.get_formed_item(field.name)
                     value = item.getValue()
-                    #log.debug('Current value of %s: %s' % (field.id, value))
+                    log.debug('Current value of %s: %s' % (field.id, value))
                     if item.getValue() in [-1, "-1", None, ""]:
                         def_value = get_unknown_value(item)
                         if def_value:
-                            #log.debug("Setting %s to %s" % (field.id, def_value))
+                            log.debug("Setting %s to %s" % (field.id, def_value))
                             data["%s" % (field.id)] = def_value
                 except:
                     log.warning('Ups! Tried to get Value from %s which seems to be no field' 



More information about the Mpuls-commits mailing list