[Mpuls-commits] r1119 - wasko/branches/2.0/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 2 11:56:47 CET 2010


Author: torsten
Date: 2010-02-02 11:56:45 +0100 (Tue, 02 Feb 2010)
New Revision: 1119

Modified:
   wasko/branches/2.0/waskaweb/controllers/casedocument.py
Log:
* waskaweb/controllers/casedocument.py
  (CasedocumentController.delete): Removed case attribute from method
  parameters as they are not used anyway.


Modified: wasko/branches/2.0/waskaweb/controllers/casedocument.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/casedocument.py	2010-02-02 10:50:32 UTC (rev 1118)
+++ wasko/branches/2.0/waskaweb/controllers/casedocument.py	2010-02-02 10:56:45 UTC (rev 1119)
@@ -94,7 +94,7 @@
             redirect_to(controller="case", action="documents") 
 
     @checkRole('cm_ka')
-    def delete(self, id, case, confirmed):
+    def delete(self, id, confirmed):
         id        = self._checkInt(id)
         confirmed = self._checkBool(confirmed)
         if confirmed == 1:
@@ -113,7 +113,7 @@
             c.context     = "../main.mako" 
             c.confirm_for = SET_ATTACHMENT_CONFIRM_DELETE_HEADER
             c.question    = SET_ATTACHMENT_CONFIRM_DELETE_TEXT
-            c.url_yes     = "/casedocument/delete/%d/%d/1" % (id, session['case'].id)
+            c.url_yes     = "/casedocument/delete/%d/1" % (id)
             c.url_no      = h.url_for(controller="/casedocument", action="index", 
                                       id=session['case'].id)
             return render('/casemanagement/dialogs/confirm_delete_attachment.mako')



More information about the Mpuls-commits mailing list