[Mpuls-commits] r2124 - wasko/branches/2.0/jmdweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 25 08:39:43 CET 2010


Author: torsten
Date: 2010-03-25 08:39:42 +0100 (Thu, 25 Mar 2010)
New Revision: 2124

Modified:
   wasko/branches/2.0/jmdweb/model/case.py
Log:
* jmdweb/model/case.py (Case.getDiscretionStatement): Deleted. Seems
not to be used in jmdweb.


Modified: wasko/branches/2.0/jmdweb/model/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/model/case.py	2010-03-24 15:00:42 UTC (rev 2123)
+++ wasko/branches/2.0/jmdweb/model/case.py	2010-03-25 07:39:42 UTC (rev 2124)
@@ -28,7 +28,6 @@
 #
 
 import sys
-from datetime import date, datetime
 import traceback
 import logging
 
@@ -40,7 +39,6 @@
 from mpulsweb.lib.db import db
 
 from mpulsweb.model.user import UserObject
-from mpulsweb.model.phase import PhaseFactory
 from mpulsweb.model.agencysettings import Agency
 from mpulsweb.model.case import MpulsCase, MpulsCaseFactory, MpulsCaseOverview, \
     MpulsCaseBundle, MpulsCaseState, SessionCase
@@ -152,37 +150,6 @@
             raise
         return None
 
-    def getDiscretionStatement(self):
-        """Returns the privacy statement of the case"""
-        if not self.discretion_statement is None:
-            return self.discretion_statement
-        try:
-            # Create discretion_statement
-            self.discretion_statement = DiscretionStatement(self, Agency())
-            return self.discretion_statement
-        except:
-            self.discretion_statement = None
-            raise
-        return None
-
-    def anonymize(self):
-        """Deleted personal data in the case"""
-        conn, cur = None, None
-        try:
-            try:
-                conn = db.getConnection()
-                cur  = conn.cursor()
-                d = {'id': self.id}
-                cur.execute(ANONYMIZE_CASE, d)
-            finally:
-                db.recycleConnection(conn, cur)
-            state = self.getState()
-            state.setState(5)
-            return True
-        except:
-            traceback.print_exc(file=sys.stderr)
-        return False
-
     def restore(self):
         #If case has no EE then set EE to undefined on restore
         ps = self.getPrivacyStatement()



More information about the Mpuls-commits mailing list