equal
deleted
inserted
replaced
1 """ |
1 """ |
2 Our URL action handlers |
2 Our URL action handlers |
3 """ |
3 """ |
|
4 |
|
5 from lib import template |
|
6 |
|
7 templates = template.TemplateLoader("sites/irclogs.qmsk.net/templates") |
4 |
8 |
5 def index (request) : |
9 def index (request) : |
6 """ |
10 """ |
7 The topmost index page, display a list of available channels, perhaps some general stats |
11 The topmost index page, display a list of available channels, perhaps some general stats |
8 """ |
12 """ |
9 |
13 |
10 pass |
14 return templates.render_to_response("index") |
11 |
15 |
12 def channel_view (request, channel) : |
16 def channel_view (request, channel) : |
13 """ |
17 """ |
14 The main channel view page, display the most important info, and all requisite links |
18 The main channel view page, display the most important info, and all requisite links |
15 """ |
19 """ |
|
20 |
|
21 return templates.render_to_response("channel", |
|
22 channel_name = channel, |
|
23 ) |
16 |
24 |
17 pass |
25 pass |
18 |
26 |
19 def channel_last (request, channel, lines, type) : |
27 def channel_last (request, channel, lines, type) : |
20 """ |
28 """ |