* Now using Blueprints instead of importing modules. * Now using def create_app instead of just app
43 lines
650 B
Python
43 lines
650 B
Python
import os
|
|
import inspect
|
|
|
|
global languages
|
|
languages = {}
|
|
|
|
global apihost
|
|
apihost = "http://media.odecif.net:5501"
|
|
|
|
global app_language
|
|
app_language = ""
|
|
|
|
def set_languages(languages_dict):
|
|
global languages
|
|
languages = languages_dict
|
|
return True
|
|
|
|
|
|
def get_languages():
|
|
global languages
|
|
return languages
|
|
|
|
|
|
def set_apihost(new_apihost):
|
|
global apihost
|
|
apihost = new_apihost
|
|
return apihost
|
|
|
|
|
|
def get_apihost():
|
|
global apihost
|
|
return apihost
|
|
|
|
|
|
def set_applanguage(new_applanguage):
|
|
global app_language
|
|
app_language = new_applanguage
|
|
return app_language
|
|
|
|
def init():
|
|
global apihost
|
|
apihost = ""
|