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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Mar 19 08:49:51 CET 2010


Author: torsten
Date: 2010-03-19 08:49:50 +0100 (Fri, 19 Mar 2010)
New Revision: 2026

Modified:
   wasko/branches/2.0/jmdweb/model/case.py
Log:
* jmdweb/model/case.py (Case.delete): Deleted. Is now defined in
  mpulsweb


Modified: wasko/branches/2.0/jmdweb/model/case.py
===================================================================
--- wasko/branches/2.0/jmdweb/model/case.py	2010-03-19 07:49:09 UTC (rev 2025)
+++ wasko/branches/2.0/jmdweb/model/case.py	2010-03-19 07:49:50 UTC (rev 2026)
@@ -92,8 +92,6 @@
     SET phase = %(phase)s
     WHERE id IN (SELECT master_id FROM ka_status_tbl_view WHERE id = %(id)s)"""
 
-DELETE_CASE_SQL = """select delete_master_ds(%(id)s)"""
-
 INIT_CASE_SQL = """
 UPDATE master_tbl_view
 SET
@@ -254,23 +252,6 @@
     def init_state(self, state_id, status, access):
         self.state = State(state_id, self.id, status, access)
 
-    def delete(self):
-        """Deletes the case from data base. Returns True if deletion succseeds
-        """
-        conn, cur = None, None
-        try:
-            try:
-                conn = db.getConnection()
-                cur = conn.cursor()
-                cur.execute(DELETE_CASE_SQL, {'id': self.id})
-                conn.commit()
-                return True
-            finally:
-                db.recycleConnection(conn, cur)
-        except:
-            traceback.print_exc(file=sys.stderr)
-        return False
-
     def getId(self):
         return self.id
 



More information about the Mpuls-commits mailing list