author | Tero Marttila <terom@fixme.fi> |
Sat, 07 Feb 2009 17:10:06 +0200 | |
branch | sites |
changeset 175 | fc03275ad1ec |
parent 171 | 5ad9e9459cab |
child 35 | 79ea0e2a6cc2 |
permissions | -rw-r--r-- |
""" URL mapping for the irclogs.qmsk.net site """ # our own handlers import handlers # library stuff from lib.map import StaticMapping, map, mapre def build_mapper () : """ Construct and return the Mapping object """ return StaticMapping([ map( '/', handlers.index ), map( '/channel/%s', handlers.channel_view ), mapre( r'^/channel/(\w+)/last/(\d+)(\.\w+)?', handlers.channel_last ), ])