equal
deleted
inserted
replaced
26 Redirect to the appropriate channel_view |
26 Redirect to the appropriate channel_view |
27 """ |
27 """ |
28 |
28 |
29 return http.Redirect(urls.channel_view.build(request, channel=channel.id)) |
29 return http.Redirect(urls.channel_view.build(request, channel=channel.id)) |
30 |
30 |
31 def channel_view (request, channel) : |
31 def channel_view (request, channel, count) : |
32 """ |
32 """ |
33 The main channel view page, display the most important info, and all requisite links |
33 The main channel view page, display the most important info, and all requisite links |
34 """ |
34 """ |
35 |
35 |
|
36 if count == 'all' : |
|
37 xxx |
|
38 |
|
39 else : |
|
40 count = int(count) |
|
41 |
36 return templates.render_to_response("channel", |
42 return templates.render_to_response("channel", |
37 req = request, |
43 req = request, |
38 channel = channel, |
44 channel = channel, |
|
45 count = count, |
|
46 lines = channel.source.get_latest(count), |
39 ) |
47 ) |
40 |
48 |
41 pass |
49 pass |
42 |
50 |
43 def channel_last (request, channel, count, format) : |
51 def channel_last (request, channel, count, format) : |