sites/irclogs.qmsk.net/urls.py
branchsites
changeset 29 b06ff4c05d42
child 30 a86a25a9f75b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/irclogs.qmsk.net/urls.py	Sat Feb 07 06:05:10 2009 +0200
@@ -0,0 +1,22 @@
+
+"""
+    URL mapping for the irclogs.qmsk.net site
+"""
+
+# our own handlers
+import handlers
+
+# library stuff
+from lib.map import Mapping, map, mapre
+
+def url_mapper () :
+    """
+        Construct and return the Mapping object
+    """
+
+    return Mapping(
+        map(    '/',                                        handlers.index                  ),
+        map(    '/channel/%s',                              handlers.channel_view           ),
+        mapre(  r'^/channel/(\w+)/last/(\d+)(\.\w+)?',      handlers.channel_last           ),
+    )
+