add a 'clear cache' button in the settings
[mevemon] / package / src / constants.py
1 """ Contains all the constants that mevemon uses """
2 import os
3 import tempfile
4
5 CONFIG_DIR = os.path.expanduser("~/.mevemon/")
6 CONFIG_NAME = "mevemon.cfg"
7 CONFIG_PATH = os.path.join(CONFIG_DIR, CONFIG_NAME)
8 IMG_CACHE_PATH = os.path.join(CONFIG_DIR, "imgs")
9 APICACHE_PATH = os.path.join(tempfile.gettempdir(), "eveapi")
10
11 # Logging constants
12 LOGNAME = "mevemon.log"
13 LOGPATH = os.path.join(CONFIG_DIR, LOGNAME)
14 MAXBYTES = 1 * 1000 * 1000 # 1MB
15 LOGCOUNT = 10
16
17 ABOUT_NAME = 'mEveMon'
18 ABOUT_TEXT = ('Mobile character monitor for EVE Online')
19 ABOUT_AUTHORS = ['Ryan Campbell <campbellr@gmail.com>',
20                  'Danny Campbell <danny.campbell@gmail.com>']
21
22 ABOUT_WEBSITE = 'http://mevemon.garage.maemo.org'
23 APP_VERSION = '0.5-1'
24
25 # size of a valid api key
26 KEY_SIZE = 64