tycker/README.md

75 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2021-02-14 22:41:20 +01:00
# tycker - a web-based ticker input form
2012-04-20 03:50:59 +02:00
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
## Overview
2012-04-20 13:51:09 +02:00
2012-04-20 03:50:59 +02:00
tycker offers a very simple interface to be used for entering ticker information.
Each entry consists of the current time, a title and content.
2021-02-14 22:41:20 +01:00
The content may be written in [wikicreole syntax](http://www.wikicreole.org/imageServlet?page=CheatSheet%2Fcreole_cheat_sheet.png)
2012-04-20 03:50:59 +02:00
The data items are stored in an sqlite database by default. Other options
(mysql/postgres) are easily configurable, as well.
2021-02-14 22:41:20 +01:00
The result is processed via the template "display.html". Adjust this file to generate the desired layout.
2012-04-20 03:50:59 +02:00
Generated html files are stored in the parent directory of tycker's base directory.
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
## Installation
2012-04-20 13:51:09 +02:00
Debian-based systems:
2021-02-14 22:41:20 +01:00
apt-get install python-bobo python-genshi python-sqlobject
2012-04-20 13:51:09 +02:00
Additionally you need a wsgi-capable webserver. The most popular solution
would be the following:
2021-02-14 22:41:20 +01:00
apt-get install libapache2-mod-wsgi
2012-04-20 13:51:09 +02:00
Get the sources and extract them within the tree of your webserver:
2021-02-14 22:41:20 +01:00
svn co https://svn.systemausfall.org/svn/codekasten/tycker /var/www/tycker
2012-04-20 13:51:09 +02:00
Maybe you will need to enable "AllowOverride FileInfo Options" for this
directory. Take a look at .htaccess for details.
2021-02-14 22:41:20 +01:00
Alternatively you can also use [WSGIScriptAlias directive](http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives) for a
2012-04-20 13:51:09 +02:00
cleaner URL.
2021-02-14 22:41:20 +01:00
## Configuration
2012-04-20 13:51:09 +02:00
Configuration is currently done via five settings:
2021-02-14 22:41:20 +01:00
2012-04-20 13:51:09 +02:00
* DATE_FORMAT = "%H:%M %d.%m.%Y"
2021-02-14 22:41:20 +01:00
* how the date is represented (and parsed) in the input field
2012-04-20 13:51:09 +02:00
* PAGE_SIZE = 10
2021-02-14 22:41:20 +01:00
* how many ticker entries should be displayed per html output file
2012-04-20 13:51:09 +02:00
* FILENAME_TEMPLATE = "ticker%d.html"
2021-02-14 22:41:20 +01:00
* basename of the resulting html files
2012-04-20 13:51:09 +02:00
* FULL_PATH_FILENAME_TEMPLATE = os.path.join(BASE_DIR, os.path.pardir, FILENAME_TEMPLATE)
2021-02-14 22:41:20 +01:00
* absolute path of the result html file (by default: in the parent directory of tycker's base directory)
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
Probably you will want to configure some http-authentifaction to protect your tycker directory from unintended access.
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
The static output generated by tycker can be styled by placing css and other files alongside. You may want to use the content of 'example-output-style' as a usable starting point.
2015-04-26 00:01:06 +02:00
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
## Usage
2012-04-20 13:51:09 +02:00
Point your webbrowser to the installation directory:
2021-02-14 22:41:20 +01:00
http://localhost/tycker/tycker.py/
2012-04-20 13:51:09 +02:00
The result is available (by default) at:
2021-02-14 22:41:20 +01:00
http://localhost/ticker1.html
2012-04-20 13:51:09 +02:00
2021-02-14 22:41:20 +01:00
## Bug reports / feedback
2012-04-20 14:34:12 +02:00
2012-04-20 13:51:09 +02:00
Just send a mail to devel@sumpralle.de.
2012-04-20 14:34:12 +02:00
2021-02-14 22:41:20 +01:00
## License
2012-04-20 14:34:12 +02:00
tycker is published under the AGPL v3.0 (or later) license.
http://www.gnu.org/licenses/agpl-3.0.html