[Mpuls-commits] r2450 - wasko/branches/2.0/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 21 17:08:53 CEST 2010


Author: torsten
Date: 2010-04-21 17:07:05 +0200 (Wed, 21 Apr 2010)
New Revision: 2450

Modified:
   wasko/branches/2.0/mpulsweb/model/case.py
Log:
* mpulsweb/model/case.py: Fixed SQL statement to anonymize


Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py	2010-04-21 14:52:35 UTC (rev 2449)
+++ wasko/branches/2.0/mpulsweb/model/case.py	2010-04-21 15:07:05 UTC (rev 2450)
@@ -88,7 +88,7 @@
     UPDATE master_tbl_view
     SET phase = %(phase)s
     WHERE id IN (SELECT master_id FROM ka_status_tbl_view WHERE id = %(id)s)"""
-ANONYMIZE_CASE = """SELECT anonymizephase_case_wrapper(%(id)s)"""
+ANONYMIZE_CASE = """SELECT anonymize_case_wrapper(%(id)s)"""
 CHECK_REMIND_CONDITION = """select id from master_tbl_view where id = %%(id)s and (%s)"""
 
 #DIALOGS
@@ -817,7 +817,7 @@
             state.setState(5)
             return True
         except:
-            traceback.print_exc(file=sys.stderr)
+            log.exception('Fehler beim Anonymisieren')
         return False
 
     def restore(self):



More information about the Mpuls-commits mailing list