-CC-2044: remove hardcoded settings from application/configs/conf.php
-rearranged some stuff...some bugs still to go
This commit is contained in:
parent
161505a6df
commit
2702363a33
15 changed files with 130 additions and 92 deletions
|
@ -31,7 +31,7 @@ import unittest
|
|||
logging.config.fileConfig("logging-api-validator.cfg")
|
||||
|
||||
try:
|
||||
config = ConfigObj('config.cfg')
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
except Exception, e:
|
||||
print 'Error loading config file: ', e
|
||||
sys.exit()
|
||||
|
|
|
@ -63,7 +63,7 @@ logging.config.fileConfig("logging.cfg")
|
|||
|
||||
# loading config file
|
||||
try:
|
||||
config = ConfigObj('config.cfg')
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
except Exception, e:
|
||||
print 'Error loading config file: ', e
|
||||
sys.exit()
|
||||
|
|
|
@ -58,7 +58,7 @@ logging.config.fileConfig("logging.cfg")
|
|||
|
||||
# loading config file
|
||||
try:
|
||||
config = ConfigObj('config.cfg')
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
|
||||
except Exception, e:
|
||||
print 'error: ', e
|
||||
|
|
|
@ -75,7 +75,7 @@ cue_style = 'pre'
|
|||
# Airtime Config #
|
||||
#####################
|
||||
# Value needed to access the API
|
||||
api_key = 'AAA'
|
||||
api_key = 'OTBGMVOAWNJZEK7AEWSM'
|
||||
|
||||
# Path to the base of the API
|
||||
api_base = 'api'
|
|
@ -27,7 +27,7 @@ logging.config.fileConfig("logging.cfg")
|
|||
|
||||
# loading config file
|
||||
try:
|
||||
config = ConfigObj('config.cfg')
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
LS_HOST = config['ls_host']
|
||||
LS_PORT = config['ls_port']
|
||||
POLL_INTERVAL = int(config['poll_interval'])
|
||||
|
|
|
@ -20,7 +20,7 @@ logging.config.fileConfig("logging.cfg")
|
|||
|
||||
# loading config file
|
||||
try:
|
||||
config = ConfigObj('config.cfg')
|
||||
config = ConfigObj('/etc/airtime/pypo.cfg')
|
||||
LS_HOST = config['ls_host']
|
||||
LS_PORT = config['ls_port']
|
||||
PUSH_INTERVAL = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue