[Mpuls-commits] r1792 - wasko/branches/2.0/jmdweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 15:29:24 CET 2010


Author: torsten
Date: 2010-02-25 15:29:24 +0100 (Thu, 25 Feb 2010)
New Revision: 1792

Modified:
   wasko/branches/2.0/jmdweb/controllers/case.py
Log:
* jmdweb/controllers/case.py (_determineAnonymizedCaseEndPhase):
  Deleted. Import from lib/anonymize.


Modified: wasko/branches/2.0/jmdweb/controllers/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/case.py	2010-02-25 14:26:33 UTC (rev 1791)
+++ wasko/branches/2.0/jmdweb/controllers/case.py	2010-02-25 14:29:24 UTC (rev 1792)
@@ -42,6 +42,7 @@
 from mpulsweb.lib.base import c, g, h, redirect_to, render, request, session
 from mpulsweb.lib.db import db
 from mpulsweb.lib.navigation import get_navigation
+from mpulsweb.lib.anonymize import determineAnonymizedCaseEndPhase as _determineAnonymizedCaseEndPhase
 from mpulsweb.lib.security import checkRole
 
 from mpulsweb.model.appointment import CaseAppointmentFactory
@@ -182,16 +183,6 @@
     return decorator(validate)
 
 
-def _determineAnonymizedCaseEndPhase(case):
-    '''Determine the phase to be set for the anonymized case'''
-    current_phase = case.getState().getPhase()
-    if phase_start(current_phase):
-        end_phase = current_phase + 1
-    else:
-        end_phase = current_phase
-    return end_phase
-
-
 def _completeAnonymizedCase(case):
     '''Fill all missing fields with "unknown" before mark for anonymization.
 



More information about the Mpuls-commits mailing list