[Mpuls-commits] r1377 - in wasko/branches/2.0: . mpulsweb/config

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Feb 9 14:46:59 CET 2010


Author: bh
Date: 2010-02-09 14:46:58 +0100 (Tue, 09 Feb 2010)
New Revision: 1377

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/mpulsweb/config/routing.py
Log:
* mpulsweb/config/routing.py (make_map): Add extra route for
case_overview which is still in waskaweb.  See the comments for
more details.


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-09 13:45:33 UTC (rev 1376)
+++ wasko/branches/2.0/ChangeLog	2010-02-09 13:46:58 UTC (rev 1377)
@@ -1,5 +1,11 @@
 2010-02-09  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/config/routing.py (make_map): Add extra route for
+	case_overview which is still in waskaweb.  See the comments for
+	more details.
+
+2010-02-09  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/lib/app_globals.py (Globals.__init__): Add debug log
 	for formed file name
 

Modified: wasko/branches/2.0/mpulsweb/config/routing.py
===================================================================
--- wasko/branches/2.0/mpulsweb/config/routing.py	2010-02-09 13:45:33 UTC (rev 1376)
+++ wasko/branches/2.0/mpulsweb/config/routing.py	2010-02-09 13:46:58 UTC (rev 1377)
@@ -93,6 +93,15 @@
     map.connect('/', controller=config.get('mpuls.app.indexcontroller',
                                            'mpuls'),
                 action='index')
+    # Explicit route for case overview actions because the generic
+    # '/{controller}/{action}/{id}' doesn't work for them.
+    # FIXME: The controller in question is still in waskaweb, so ideally
+    # this route shouldn't be here, but the controller should be in
+    # mpulsweb soon and there's no easy way, currently to overwrite or
+    # extend the mapping in waskaweb.
+    map.connect('/case_overview/{action}/{confirmed}',
+                controller="case_overview")
+
     map.connect('/{controller}', action='index')
     map.connect('/{controller}/{action}')
     map.connect('/{controller}/{action}/{id}')



More information about the Mpuls-commits mailing list