author | Tero Marttila <terom@fixme.fi> |
Sat, 07 Feb 2009 06:05:10 +0200 | |
branch | sites |
changeset 29 | b06ff4c05d42 |
child 30 | a86a25a9f75b |
permissions | -rw-r--r-- |
""" 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 ), )