branch | sites |
changeset 29 | b06ff4c05d42 |
child 30 | a86a25a9f75b |
28:b68145b5ce24 | 29:b06ff4c05d42 |
---|---|
1 |
|
2 """ |
|
3 URL mapping for the irclogs.qmsk.net site |
|
4 """ |
|
5 |
|
6 # our own handlers |
|
7 import handlers |
|
8 |
|
9 # library stuff |
|
10 from lib.map import Mapping, map, mapre |
|
11 |
|
12 def url_mapper () : |
|
13 """ |
|
14 Construct and return the Mapping object |
|
15 """ |
|
16 |
|
17 return Mapping( |
|
18 map( '/', handlers.index ), |
|
19 map( '/channel/%s', handlers.channel_view ), |
|
20 mapre( r'^/channel/(\w+)/last/(\d+)(\.\w+)?', handlers.channel_last ), |
|
21 ) |
|
22 |