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):
|
||||
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())
|
||||
this_test = unicode(datetime.now().date())
|
||||
config.set_config(u'last version test', this_test)
|
||||
if last_test != this_test:
|
||||
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)
|
||||
try:
|
||||
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]
|
||||
display new chapter = False
|
||||
display brackets = 0
|
||||
verse layout style = 0
|
||||
bible theme = 0
|
||||
search as type = True
|
||||
bibles_status = 0
|
||||
dual bibles = False
|
||||
db type = sqlite
|
||||
bible theme =
|
||||
verse layout style = 1
|
||||
status = 1
|
||||
data path = bibles
|
||||
|
||||
[media]
|
||||
use mode layout = False
|
||||
media_status = 1
|
||||
|
||||
[image]
|
||||
loop delay = 5
|
||||
status = 1
|
||||
|
||||
[alerts]
|
||||
font color = #ffffff
|
||||
background color = #660000
|
||||
font face = Sans Serif
|
||||
timeout = 5
|
||||
background color = #660000
|
||||
|
||||
[user interface]
|
||||
display previewpanel = True
|
||||
display thememanager = True
|
||||
display servicemanager = True
|
||||
display mediamanager = True
|
||||
[remotes]
|
||||
remote port = 4316
|
||||
|
||||
[presentations]
|
||||
data path = presentations
|
||||
status = 1
|
||||
impress = 0
|
||||
data path = presentations
|
||||
powerpoint = 0
|
||||
powerpoint viewer = 0
|
||||
|
||||
[custom]
|
||||
status = 1
|
||||
display footer = True
|
||||
data path = custom
|
||||
db type = sqlite
|
||||
custom_status = 0
|
||||
|
||||
[themes]
|
||||
global theme =
|
||||
data path = themes
|
||||
theme global theme =
|
||||
theme global style = Global
|
||||
theme level = 1
|
||||
|
||||
[images]
|
||||
status = 1
|
||||
data path = images
|
||||
loop delay = 5
|
||||
|
||||
[user interface]
|
||||
theme manager = True
|
||||
media manager = True
|
||||
preview panel = True
|
||||
service manager = True
|
||||
|
||||
[servicemanager]
|
||||
data path = servicemanager
|
||||
theme service theme =
|
||||
|
||||
[remotes]
|
||||
remotes_status = 1
|
||||
remote port = 4316
|
||||
|
||||
[images]
|
||||
images_status = 1
|
||||
|
||||
[general]
|
||||
monitor = 0
|
||||
run environment = dev
|
||||
ccli number =
|
||||
blank warning = False
|
||||
show splash = True
|
||||
application version test = 2009-10-14
|
||||
user name =
|
||||
application version = 1.9.0-600
|
||||
warning = False
|
||||
last version test = 2010-02-05
|
||||
songselect username =
|
||||
save prompt = False
|
||||
songselect password =
|
||||
auto open = False
|
||||
password =
|
||||
ccl number = XXX
|
||||
|
||||
[songs]
|
||||
songs_status = 0
|
||||
status = 1
|
||||
search as type = False
|
||||
display songbar = True
|
||||
data path = songs
|
||||
db type = sqlite
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user