forked from openlp/openlp
Update default config file and add version checking option
This commit is contained in:
parent
079c9a4679
commit
58894e2afa
@ -37,12 +37,14 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def check_latest_version(config, current_version):
|
def check_latest_version(config, current_version):
|
||||||
version_string = current_version
|
version_string = current_version
|
||||||
|
#set to prod in the distribution confif file.
|
||||||
|
environment = config.get_config(u'run environment', u'dev')
|
||||||
last_test = config.get_config(u'last version test', datetime.now().date())
|
last_test = config.get_config(u'last version test', datetime.now().date())
|
||||||
this_test = unicode(datetime.now().date())
|
this_test = unicode(datetime.now().date())
|
||||||
config.set_config(u'last version test', this_test)
|
config.set_config(u'last version test', this_test)
|
||||||
if last_test != this_test:
|
if last_test != this_test:
|
||||||
version_string = u''
|
version_string = u''
|
||||||
req = urllib2.Request(u'http://www.openlp.org/files/version.txt')
|
req = urllib2.Request(u'http://www.openlp.org/files/%s_version.txt' % environment)
|
||||||
req.add_header(u'User-Agent', u'OpenLP/%s' % current_version)
|
req.add_header(u'User-Agent', u'OpenLP/%s' % current_version)
|
||||||
try:
|
try:
|
||||||
handle = urllib2.urlopen(req, None)
|
handle = urllib2.urlopen(req, None)
|
||||||
|
@ -1,77 +1,73 @@
|
|||||||
[audit]
|
|
||||||
first service = 2
|
|
||||||
db type = sqlite
|
|
||||||
audit active = False
|
|
||||||
second service = 2
|
|
||||||
audit_status = 0
|
|
||||||
data path = audit
|
|
||||||
|
|
||||||
[bibles]
|
[bibles]
|
||||||
display new chapter = False
|
display new chapter = False
|
||||||
display brackets = 0
|
display brackets = 0
|
||||||
verse layout style = 0
|
dual bibles = False
|
||||||
bible theme = 0
|
db type = sqlite
|
||||||
search as type = True
|
bible theme =
|
||||||
bibles_status = 0
|
verse layout style = 1
|
||||||
|
status = 1
|
||||||
data path = bibles
|
data path = bibles
|
||||||
|
|
||||||
[media]
|
[media]
|
||||||
use mode layout = False
|
status = 1
|
||||||
media_status = 1
|
|
||||||
|
|
||||||
[image]
|
|
||||||
loop delay = 5
|
|
||||||
|
|
||||||
[alerts]
|
[alerts]
|
||||||
font color = #ffffff
|
font color = #ffffff
|
||||||
|
background color = #660000
|
||||||
font face = Sans Serif
|
font face = Sans Serif
|
||||||
timeout = 5
|
timeout = 5
|
||||||
background color = #660000
|
|
||||||
|
|
||||||
[user interface]
|
[remotes]
|
||||||
display previewpanel = True
|
remote port = 4316
|
||||||
display thememanager = True
|
|
||||||
display servicemanager = True
|
|
||||||
display mediamanager = True
|
|
||||||
|
|
||||||
[presentations]
|
[presentations]
|
||||||
data path = presentations
|
status = 1
|
||||||
impress = 0
|
impress = 0
|
||||||
|
data path = presentations
|
||||||
|
powerpoint = 0
|
||||||
|
powerpoint viewer = 0
|
||||||
|
|
||||||
[custom]
|
[custom]
|
||||||
|
status = 1
|
||||||
|
display footer = True
|
||||||
data path = custom
|
data path = custom
|
||||||
db type = sqlite
|
db type = sqlite
|
||||||
custom_status = 0
|
|
||||||
|
|
||||||
[themes]
|
[themes]
|
||||||
|
global theme =
|
||||||
data path = themes
|
data path = themes
|
||||||
theme global theme =
|
theme level = 1
|
||||||
theme global style = Global
|
|
||||||
|
[images]
|
||||||
|
status = 1
|
||||||
|
data path = images
|
||||||
|
loop delay = 5
|
||||||
|
|
||||||
|
[user interface]
|
||||||
|
theme manager = True
|
||||||
|
media manager = True
|
||||||
|
preview panel = True
|
||||||
|
service manager = True
|
||||||
|
|
||||||
[servicemanager]
|
[servicemanager]
|
||||||
data path = servicemanager
|
data path = servicemanager
|
||||||
theme service theme =
|
|
||||||
|
|
||||||
[remotes]
|
|
||||||
remotes_status = 1
|
|
||||||
remote port = 4316
|
|
||||||
|
|
||||||
[images]
|
|
||||||
images_status = 1
|
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
monitor = 0
|
monitor = 0
|
||||||
|
run environment = dev
|
||||||
|
ccli number =
|
||||||
|
blank warning = False
|
||||||
show splash = True
|
show splash = True
|
||||||
application version test = 2009-10-14
|
last version test = 2010-02-05
|
||||||
user name =
|
songselect username =
|
||||||
application version = 1.9.0-600
|
save prompt = False
|
||||||
warning = False
|
songselect password =
|
||||||
auto open = False
|
auto open = False
|
||||||
password =
|
|
||||||
ccl number = XXX
|
|
||||||
|
|
||||||
[songs]
|
[songs]
|
||||||
songs_status = 0
|
status = 1
|
||||||
|
search as type = False
|
||||||
|
display songbar = True
|
||||||
data path = songs
|
data path = songs
|
||||||
db type = sqlite
|
db type = sqlite
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user