terom@29: """ terom@29: Our URL action handlers terom@29: """ terom@29: terom@40: from lib import template terom@40: terom@40: templates = template.TemplateLoader("sites/irclogs.qmsk.net/templates") terom@40: terom@29: def index (request) : terom@29: """ terom@29: The topmost index page, display a list of available channels, perhaps some general stats terom@29: """ terom@40: terom@40: return templates.render_to_response("index") terom@29: terom@29: def channel_view (request, channel) : terom@29: """ terom@29: The main channel view page, display the most important info, and all requisite links terom@29: """ terom@29: terom@40: return templates.render_to_response("channel", terom@40: channel_name = channel, terom@40: ) terom@40: terom@29: pass terom@29: terom@36: def channel_last (request, channel, lines, type) : terom@29: """ terom@29: Display the last x lines of channel messages in various formats terom@29: """ terom@29: terom@29: pass terom@29: terom@36: def channel_search (request, channel) : terom@36: """ terom@36: Display the search form for the channel for GET, or do the search for POST terom@36: """ terom@36: terom@36: pass terom@36: