sites/irclogs.qmsk.net/log_channel.py
author Tero Marttila <terom@fixme.fi>
Sun, 08 Feb 2009 02:29:23 +0200
branchsites
changeset 42 5a72c00c4ae4
parent 41 9585441a4bfb
permissions -rw-r--r--
more fiddling around with the irclogs layout/css, add query args to URL
"""
    A channel represents a series of log events, stored in some log source
"""

class LogChannel (object) :
    """
        A single IRC channel, logged to some specific place
    """

    def __init__ (self, id, network, name, source) :
        """
            Initialize this channel from the given identifier key, network name, channel name, and LogSource
        """
        
        self.id = id
        self.network = network
        self.name = name
        self.source = source
    
    @property
    def title (self) :
        """
            Title is 'Network - #channel'
        """

        return "%s - %s" % (self.network, self.name)