--- 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 ),
- )
+ ])