author | Tero Marttila <terom@fixme.fi> |
Mon, 09 Feb 2009 07:15:19 +0200 | |
changeset 62 | e7ca94b94a4e |
parent 46 | 185504387370 |
child 65 | 8b50694f841e |
permissions | -rw-r--r-- |
41 | 1 |
""" |
2 |
A channel represents a series of log events, stored in some log source |
|
3 |
""" |
|
4 |
||
5 |
class LogChannel (object) : |
|
6 |
""" |
|
7 |
A single IRC channel, logged to some specific place |
|
8 |
""" |
|
9 |
||
10 |
def __init__ (self, id, network, name, source) : |
|
11 |
""" |
|
12 |
Initialize this channel from the given identifier key, network name, channel name, and LogSource |
|
13 |
""" |
|
14 |
||
15 |
self.id = id |
|
16 |
self.network = network |
|
17 |
self.name = name |
|
18 |
self.source = source |
|
42
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
19 |
|
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
20 |
@property |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
21 |
def title (self) : |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
22 |
""" |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
23 |
Title is 'Network - #channel' |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
24 |
""" |
41 | 25 |
|
42
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
26 |
return "%s - %s" % (self.network, self.name) |
5a72c00c4ae4
more fiddling around with the irclogs layout/css, add query args to URL
Tero Marttila <terom@fixme.fi>
parents:
41
diff
changeset
|
27 |