diff -r 9c7769850195 -r 6db2527b67cf urls.py --- a/urls.py Sun Sep 13 00:49:55 2009 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ - -""" - URL mapping for the irclogs.qmsk.net site -""" - -# urltree stuff -from qmsk.web import urltree - -# our own handlers -import handlers - -# for types -import utils - -# for configuration -import config - -# our URLTypes -types = dict( - # LogChannel - cid = utils.URLChannelName(config.LOG_CHANNELS.dict()), - - # datetime - date = utils.URLDateType(config.URL_DATE_FMT), - - # UTC timestamp - ts = utils.URLTimestampType(), -) - -# our URLConfig -urls = url = urltree.URLConfig(type_dict=types) - -# urls -index = url('/', handlers.index ) -preferences = url('/preferences', handlers.preferences_ ) -channel_select = url('/channel_select/?channel:cid', handlers.channel_select ) -channel = url('/channels/{channel:cid}', handlers.channel_last, count=20 ) -channel_last = url('/channels/{channel:cid}/last/{count:int=100}/{type=}', handlers.channel_last ) -channel_link = url('/channels/{channel:cid}/link/{timestamp:ts}/?type=', handlers.channel_link ) -channel_calendar = url('/channels/{channel:cid}/calendar/{year:int=0}/{month:int=0}', handlers.channel_calendar ) -channel_date = url('/channels/{channel:cid}/date/{date:date}/?page:int=1&type=', handlers.channel_date ) -channel_search = url('/channels/{channel:cid}/search/?q=&page:int=1&max:int=1&type=&t:list=', handlers.channel_search ) - -# mapper -mapper = urltree.URLTree(urls) -