diff roundup/instance.py @ 5001:01d14361cae7 routing

Transform instance.web_handlers to list to maintain order
author anatoly techtonik <techtonik@gmail.com>
date Fri, 11 Sep 2015 09:44:31 +0300
parents 082ee3ded101
children
line wrap: on
line diff
--- a/roundup/instance.py	Fri Sep 11 08:16:38 2015 +0300
+++ b/roundup/instance.py	Fri Sep 11 09:44:31 2015 +0300
@@ -57,7 +57,7 @@
         self.actions = {}
         self.cgi_actions = {}
         self.templating_utils = {}
-        self.web_handlers = {}
+        self.web_handlers = []
 
         libdir = os.path.join(self.tracker_home, 'lib')
         self.libdir = os.path.isdir(libdir) and libdir or ''
@@ -241,7 +241,7 @@
         urls against class names in DB.
 
         New in version 1.6.x"""
-        self.web_handlers[urlpath] = function
+        self.web_handlers.append( [urlpath, function] )
 
     def registerUtil(self, name, function):
         self.templating_utils[name] = function

Roundup Issue Tracker: http://roundup-tracker.org/