|
Revision 254, 1.2 kB
(checked in by gawel, 1 year ago)
|
|
=more to read
|
| Line | |
|---|
| 1 | ================ |
|---|
| 2 | kikoolol.irc.log |
|---|
| 3 | ================ |
|---|
| 4 | |
|---|
| 5 | This package is used to publish irssi irc log. |
|---|
| 6 | |
|---|
| 7 | The kikoolol package *MUST* be somewhere in your PYTHONPATH |
|---|
| 8 | |
|---|
| 9 | Log files must have the format log-%Y-%m-%d.txt |
|---|
| 10 | |
|---|
| 11 | Simple comfiguration with Apache |
|---|
| 12 | -------------------------------- |
|---|
| 13 | |
|---|
| 14 | Add a vhost like this:: |
|---|
| 15 | |
|---|
| 16 | <VirtualHost *:80> |
|---|
| 17 | ServerName yourdomain.com |
|---|
| 18 | |
|---|
| 19 | <Location "/"> |
|---|
| 20 | SetHandler python-program |
|---|
| 21 | PythonHandler kikoolol.irc.log.handler |
|---|
| 22 | PythonOption charset "iso-8859-1" |
|---|
| 23 | PythonOption channel "your channel" |
|---|
| 24 | PythonOption template "/path/to/a/template.html" |
|---|
| 25 | PythonOption path "/path/to/irc/log/dir" |
|---|
| 26 | </Location> |
|---|
| 27 | |
|---|
| 28 | </VirtualHost> |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | template.html have to look like this:: |
|---|
| 32 | |
|---|
| 33 | <html> |
|---|
| 34 | <head> |
|---|
| 35 | </style> |
|---|
| 36 | </head> |
|---|
| 37 | <body> |
|---|
| 38 | <table> |
|---|
| 39 | <tr> |
|---|
| 40 | <td> |
|---|
| 41 | %(archives)s |
|---|
| 42 | </td> |
|---|
| 43 | <td> |
|---|
| 44 | <div class="body"> |
|---|
| 45 | %(body)s |
|---|
| 46 | </div> |
|---|
| 47 | </td> |
|---|
| 48 | </tr> |
|---|
| 49 | </table> |
|---|
| 50 | </body> |
|---|
| 51 | </html> |
|---|
| 52 | |
|---|