--- a/sites/irclogs.qmsk.net/handlers.py Sun Feb 08 02:29:23 2009 +0200
+++ b/sites/irclogs.qmsk.net/handlers.py Sun Feb 08 02:55:53 2009 +0200
@@ -28,14 +28,22 @@
return http.Redirect(urls.channel_view.build(request, channel=channel.id))
-def channel_view (request, channel) :
+def channel_view (request, channel, count) :
"""
The main channel view page, display the most important info, and all requisite links
"""
+ if count == 'all' :
+ xxx
+
+ else :
+ count = int(count)
+
return templates.render_to_response("channel",
req = request,
channel = channel,
+ count = count,
+ lines = channel.source.get_latest(count),
)
pass