author | Tero Marttila <terom@fixme.fi> |
Sat, 07 Feb 2009 06:05:10 +0200 | |
branch | sites |
changeset 170 | 532c595efa1a |
child 36 | 02d4040d5946 |
permissions | -rw-r--r-- |
170
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
1 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
2 |
Our URL action handlers |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
3 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
4 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
5 |
def index (request) : |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
6 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
7 |
The topmost index page, display a list of available channels, perhaps some general stats |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
8 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
9 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
10 |
pass |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
11 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
12 |
def channel_view (request, channel) : |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
13 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
14 |
The main channel view page, display the most important info, and all requisite links |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
15 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
16 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
17 |
pass |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
18 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
19 |
def channel_last (request, channel, lines, type='html') : |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
20 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
21 |
Display the last x lines of channel messages in various formats |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
22 |
""" |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
23 |
|
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
24 |
pass |
532c595efa1a
start prototyping some site-based code
Tero Marttila <terom@fixme.fi>
parents:
diff
changeset
|
25 |