view README @ 148:f0a2beb17f9b

Add config classes to provide keybindings The new Config class to be able to configure getan. Until now it is only possible to configure the Keybinding. The config is read from $HOME/.getan/getanrc and /etc/getanrc of the first file isn't found. If both files aren't available a default is used.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 06 Dec 2012 12:25:58 +0100
parents 13a963546ee9
children b6e91535acb7
line wrap: on
line source
0 - install pysqlite2 

    On Debian GNU/Linux just do:

    # apt-get install python-pysqlite2 
    # apt-get install python-urwid

    NOTE: getan requires urwid >= 0.9.9.1.

1 - create new time.db

    To create an empty database you need the 'sqlite3'
    commandline tool. TODO: This will change.

    # apt-get install sqlite3

    $ echo '.read schema.sql' | sqlite3 time.db

2 - adding new projects to time.db:

    $ sqlite3 time.db
    sqlite> INSERT INTO projects (key, description) VALUES ('f', 'FOO');
    sqlite> INSERT INTO projects (key, description) VALUES ('b', 'BAR');
    sqlite> .q

    To import an old worklog configuration you may use:

    ./contrib/convert-projects </PATH/TO/projects | sqlite3 time.db

    If you want to keep the reverse task order of the original config
    file you might pipe it through tac first.

3 - starting getan:

    $ ./getan.py

    or

    $ ./getan.py mytime.db

    or (for the classic version of 'getan' based on curses):
    $ classic/getan

    or

    $ classic/getan mytime.db
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)