sites/irclogs.qmsk.net/urls.py
branchsites
changeset 30 a86a25a9f75b
parent 29 b06ff4c05d42
child 35 79ea0e2a6cc2
--- a/sites/irclogs.qmsk.net/urls.py	Sat Feb 07 06:05:10 2009 +0200
+++ b/sites/irclogs.qmsk.net/urls.py	Sat Feb 07 06:54:52 2009 +0200
@@ -7,16 +7,16 @@
 import handlers
 
 # library stuff
-from lib.map import Mapping, map, mapre
+from lib.map import StaticMapping, map, mapre
 
-def url_mapper () :
+def build_mapper () :
     """
         Construct and return the Mapping object
     """
 
-    return Mapping(
+    return StaticMapping([
         map(    '/',                                        handlers.index                  ),
         map(    '/channel/%s',                              handlers.channel_view           ),
         mapre(  r'^/channel/(\w+)/last/(\d+)(\.\w+)?',      handlers.channel_last           ),
-    )
+    ])