sites/irclogs.qmsk.net/urls.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 21:02:33 +0200
branchsites
changeset 39 82df0bb66ca7
parent 38 9737b6ca2295
child 41 9585441a4bfb
permissions -rw-r--r--
split off to urltree.py, and add support for types

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

# urltree stuff
from urltree import URL, URLTree

# our own handlers
import handlers

# urls
index           = URL(  '/',                                                        handlers.index                  )
channel_view    = URL(  '/channel/{channel}',                                       handlers.channel_view           )
channel_last    = URL(  '/channel/{channel}/last/{count:int=100}/{format=html}',    handlers.channel_last           )
channel_search  = URL(  '/channel/{channel}/search',                                handlers.channel_search         )

# mapper
mapper = URLTree([index, channel_view, channel_last, channel_search])