[Mpuls-commits] r5892 - base/trunk/mpulsweb/controllers

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Mar 9 10:11:40 CET 2012


Author: ludwig
Date: 2012-03-09 10:11:40 +0100 (Fri, 09 Mar 2012)
New Revision: 5892

Modified:
   base/trunk/mpulsweb/controllers/appointment.py
   base/trunk/mpulsweb/controllers/document.py
Log:
Issue 2738: Add missing controller to index url.
In the url call of the index method the controller was missing.
This could lead to an error, because url() should use url memory.
Add these two controllers.


Modified: base/trunk/mpulsweb/controllers/appointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/appointment.py	2012-03-08 14:37:23 UTC (rev 5891)
+++ base/trunk/mpulsweb/controllers/appointment.py	2012-03-09 09:11:40 UTC (rev 5892)
@@ -51,7 +51,7 @@
 
     @checkRole(('admin', 'cm', 'pt_dlr'))
     def index(self):
-        redirect(url(action='overview'))
+        redirect(url(controller='appointment', action='overview'))
 
     @checkRole(('admin', 'cm', 'pt_dlr'))
     def overview(self):

Modified: base/trunk/mpulsweb/controllers/document.py
===================================================================
--- base/trunk/mpulsweb/controllers/document.py	2012-03-08 14:37:23 UTC (rev 5891)
+++ base/trunk/mpulsweb/controllers/document.py	2012-03-09 09:11:40 UTC (rev 5892)
@@ -55,7 +55,7 @@
 
     @checkRole(('admin', 'cm'))
     def index(self):
-        redirect(url(action='globalOverview'))
+        redirect(url(controller='document', action='globalOverview'))
 
     @checkRole(('admin', 'cm'))
     def globalOverview(self):



More information about the Mpuls-commits mailing list