[Mpuls-commits] r1118 - wasko/branches/2.0/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Feb 2 11:50:32 CET 2010
Author: torsten
Date: 2010-02-02 11:50:32 +0100 (Tue, 02 Feb 2010)
New Revision: 1118
Modified:
wasko/branches/2.0/waskaweb/controllers/document.py
Log:
* waskaweb/controllers/document.py (DocumentController.caseDelete): Deleted. Not called from anywhere.
Modified: wasko/branches/2.0/waskaweb/controllers/document.py
===================================================================
--- wasko/branches/2.0/waskaweb/controllers/document.py 2010-02-02 10:41:01 UTC (rev 1117)
+++ wasko/branches/2.0/waskaweb/controllers/document.py 2010-02-02 10:50:32 UTC (rev 1118)
@@ -153,28 +153,4 @@
c.url_no = "/document/globalOverview/"
return render('/documents/dialogs/confirm.mako')
- @checkRole('cm_ka')
- def caseDelete(self, id, case, confirmed):
- id = self._checkInt(id)
- case = self._checkInt(case)
- confirmed = self._checkBool(confirmed)
- if confirmed == 1:
- try:
- deleteDocument(id, True)
- except:
- traceback.print_exc(file=sys.stderr)
- #return render('/tests/trace.mako')
- c.url_ok = h.url_for(controller="/case", action="documents" , id=case)
- c.success_for = SET_ATTACHMENT_SUCCESS_DELETE_HEADER
- c.success_text = SET_ATTACHMENT_SUCCESS_DELETE_TEXT
- return render('/casemanagement/dialogs/delete_attachment_success.mako', id=case)
- #redirect_to(controller="/case", action="documents", id=case)
- else:
- c.context = "../main.mako"
- c.confirm_for = SET_ATTACHMENT_CONFIRM_DELETE_HEADER
- c.question = SET_ATTACHMENT_CONFIRM_DELETE_TEXT
- c.url_yes = "/document/caseDelete/%d/%d/1" % (id, case)
- c.url_no = h.url_for(controller="/case", action="documents", id=case)
- return render('/casemanagement/dialogs/confirm_delete_attachment.mako')
-
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list