[Mpuls-commits] r5793 - wasko/trunk/waskoweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jan 25 11:07:55 CET 2012


Author: torsten
Date: 2012-01-25 11:07:54 +0100 (Wed, 25 Jan 2012)
New Revision: 5793

Modified:
   wasko/trunk/waskoweb/controllers/caselifetime.py
Log:
Fixed links


Modified: wasko/trunk/waskoweb/controllers/caselifetime.py
===================================================================
--- wasko/trunk/waskoweb/controllers/caselifetime.py	2012-01-25 09:46:08 UTC (rev 5792)
+++ wasko/trunk/waskoweb/controllers/caselifetime.py	2012-01-25 10:07:54 UTC (rev 5793)
@@ -305,8 +305,8 @@
 for deletion? The case document will not be editable then and will be given to
 the administration for seletion.''')
 
-            c.url_yes = "/caselifetime/abortcase/%s/1" % id
-            c.url_no = "/caselifetime/index/%s" % id
+            c.url_yes = h.url("/caselifetime/abortcase/%s/1" % id)
+            c.url_no = h.url("/caselifetime/index/%s" % id)
             return render('caselifetime/dialogs/confirm_reopen.mako')
 
     def abortAction(self, id):
@@ -407,8 +407,8 @@
 Do you want to renew the case? Then the current case document will be
 anonymized and important parts of phase A and phase B will be copied into a
 new case document. You will work on the new case document then.""")
-            c.url_yes = "/caselifetime/renew_ok/%s/1" % id
-            c.url_no = "/caselifetime/index/%s" % id
+            c.url_yes = h.url("/caselifetime/renew_ok/%s/1" % id)
+            c.url_no = h.url("/caselifetime/index/%s" % id)
             return render('caselifetime/dialogs/confirm_reopen.mako')
 
     def renew_notok(self, id, confirmed='0'):
@@ -437,8 +437,8 @@
             c.question =  _(u"""\
 You entered, that no acceptence of the new subscription is available.
 If you continue, no new addition of this case will be possible.""")
-            c.url_yes = "/caselifetime/renew_notok/%s/1" % id
-            c.url_no = "/caselifetime/index/%s" % id
+            c.url_yes = h.url("/caselifetime/renew_notok/%s/1" % id)
+            c.url_no = h.url("/caselifetime/index/%s" % id)
             return render('caselifetime/dialogs/confirm_reopen.mako')
 
     def reopen_ok(self, id, confirmed='0'):
@@ -532,15 +532,15 @@
 Do you want to reopen the case? Then the current case document will be
 anonymized and important parts of the case document copied from phase A and
 phase B in the new case document. You will work with the new case document.""")
-                c.url_yes = "/caselifetime/reopen_ok/%s/1" % id
-                c.url_no = "/caselifetime/index/%s" % id
+                c.url_yes = h.url("/caselifetime/reopen_ok/%s/1" % id)
+                c.url_no = h.url("/caselifetime/index/%s" % id)
             else:
                 c.confirm_for = _(u"Do you want to reopen the case for 3 months?")
                 c.question = _(u"""\
 Do you want to reopen the case for 3 months? You can edit the case document
 again.""")
-                c.url_yes = "/caselifetime/reopen_ok/%s/1" % id
-                c.url_no = "/caselifetime/index/%s" %id
+                c.url_yes = h.url("/caselifetime/reopen_ok/%s/1" % id)
+                c.url_no = h.url("/caselifetime/index/%s" %id)
             return render('caselifetime/dialogs/confirm_reopen.mako')
 
     def reopen_notok(self, id, confirmed='0'):
@@ -574,8 +574,8 @@
             c.question =  _(u"""\
 You have entered, that no acceptence is available. \
 If you continue, reopening, extension or addition will not be possible.""")
-            c.url_yes = "/caselifetime/reopen_notok/%s/1" % id
-            c.url_no = "/caselifetime/index/%s" % id
+            c.url_yes = h.url("/caselifetime/reopen_notok/%s/1" % id)
+            c.url_no = h.url("/caselifetime/index/%s" % id)
             return render('caselifetime/dialogs/confirm_reopen.mako')
 
     def reopenAction(self):



More information about the Mpuls-commits mailing list