diff -r b68145b5ce24 -r b06ff4c05d42 sites/irclogs.qmsk.net/urls.py --- /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 ), + ) +