Mercurial > templog
comparison web/config.py @ 83:b9179968a272
- fix set_params (strange)
- allow overriding settings in another config file
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 11 Jul 2012 23:37:13 +0800 |
parents | 0f7c005b3f87 |
children | ccce79dcb316 |
comparison
equal
deleted
inserted
replaced
82:0f7c005b3f87 | 83:b9179968a272 |
---|---|
3 BTADDR = "00:12:03:27:70:88" | 3 BTADDR = "00:12:03:27:70:88" |
4 SLEEP_TIME = 5 | 4 SLEEP_TIME = 5 |
5 | 5 |
6 DATA_PATH = '/home/matt/templog/web/data' | 6 DATA_PATH = '/home/matt/templog/web/data' |
7 | 7 |
8 HMAC_KEY = 'a hmac key' | 8 HMAC_KEY = 'a hmac key' # override in local config file |
9 | 9 |
10 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' | 10 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' |
11 | 11 |
12 GRAPH_WIDTH = 1200 | 12 GRAPH_WIDTH = 1200 |
13 GRAPH_HEIGHT = 600 | 13 GRAPH_HEIGHT = 600 |
31 GRAPH_FONT = "Prociono" | 31 GRAPH_FONT = "Prociono" |
32 #GRAPH_FONT = "URW Gothic L" | 32 #GRAPH_FONT = "URW Gothic L" |
33 | 33 |
34 # determine by zooming in an image viewer | 34 # determine by zooming in an image viewer |
35 GRAPH_LEFT_MARGIN = 63 | 35 GRAPH_LEFT_MARGIN = 63 |
36 | |
37 try: | |
38 import localconfig | |
39 g = globals() | |
40 for k in dir(other): | |
41 if k in g: | |
42 g[k] = other.__dict__[k] | |
43 except ImportError: | |
44 pass |