sites/irclogs.qmsk.net/handlers.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 21:21:10 +0200
branchsites
changeset 40 71ab68f31a1c
parent 36 02d4040d5946
child 41 9585441a4bfb
permissions -rw-r--r--
the handlers work now
"""
    Our URL action handlers
"""

from lib import template

templates = template.TemplateLoader("sites/irclogs.qmsk.net/templates")

def index (request) :
    """
        The topmost index page, display a list of available channels, perhaps some general stats
    """
    
    return templates.render_to_response("index")

def channel_view (request, channel) :
    """
        The main channel view page, display the most important info, and all requisite links
    """

    return templates.render_to_response("channel",
        channel_name        = channel,
    )

    pass

def channel_last (request, channel, lines, type) :
    """
        Display the last x lines of channel messages in various formats
    """

    pass

def channel_search (request, channel) :
    """
        Display the search form for the channel for GET, or do the search for POST
    """

    pass