sites/irclogs.qmsk.net/urls.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 17:14:01 +0200
branchsites
changeset 35 79ea0e2a6cc2
parent 30 a86a25a9f75b
child 36 02d4040d5946
permissions -rw-r--r--
move pages/ -> sites/www.qmsk.net/pages/

"""
    URL mapping for the irclogs.qmsk.net site
"""

# our own handlers
import handlers

# library stuff
from lib.map import StaticMapper, map, mapre

def build_mapper () :
    """
        Construct and return the Mapping object
    """

    return StaticMapper([
        map(    '/',                                        handlers.index                  ),
        map(    '/channel/%s',                              handlers.channel_view           ),
        mapre(  r'^/channel/(\w+)/last/(\d+)(\.\w+)?',      handlers.channel_last           ),
    ])