diff --git a/openlp/core/api/http/wsgiapp.py b/openlp/core/api/http/wsgiapp.py index 93ccf61be..d7f6ef1c8 100644 --- a/openlp/core/api/http/wsgiapp.py +++ b/openlp/core/api/http/wsgiapp.py @@ -5,7 +5,7 @@ ############################################################################### # OpenLP - Open Source Lyrics Projection # # --------------------------------------------------------------------------- # -# Copyright (c) 2008-2016 OpenLP Developers # +# Copyright (c) 2008-2017 OpenLP Developers # # --------------------------------------------------------------------------- # # This program is free software; you can redistribute it and/or modify it # # under the terms of the GNU General Public License as published by the Free # diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 57a58ccbd..e01620932 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -516,8 +516,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties): Settings().set_up_default_values() self.about_form = AboutForm(self) MediaController() - websockets.WebSocketServer() - server.HttpServer() + # websockets.WebSocketServer() + # server.HttpServer() SettingsForm(self) self.formatting_tag_form = FormattingTagForm(self) self.shortcut_form = ShortcutListForm(self) diff --git a/openlp/plugins/remotes/deploy.py b/openlp/plugins/remotes/deploy.py index a893cd98a..f6c5adbb5 100644 --- a/openlp/plugins/remotes/deploy.py +++ b/openlp/plugins/remotes/deploy.py @@ -4,7 +4,7 @@ ############################################################################### # OpenLP - Open Source Lyrics Projection # # --------------------------------------------------------------------------- # -# Copyright (c) 2008-2016 OpenLP Developers # +# Copyright (c) 2008-2017 OpenLP Developers # # --------------------------------------------------------------------------- # # This program is free software; you can redistribute it and/or modify it # # under the terms of the GNU General Public License as published by the Free # diff --git a/openlp/plugins/remotes/endpoint.py b/openlp/plugins/remotes/endpoint.py index 757b26874..1a22dd53c 100644 --- a/openlp/plugins/remotes/endpoint.py +++ b/openlp/plugins/remotes/endpoint.py @@ -4,7 +4,7 @@ ############################################################################### # OpenLP - Open Source Lyrics Projection # # --------------------------------------------------------------------------- # -# Copyright (c) 2008-2016 OpenLP Developers # +# Copyright (c) 2008-2017 OpenLP Developers # # --------------------------------------------------------------------------- # # This program is free software; you can redistribute it and/or modify it # # under the terms of the GNU General Public License as published by the Free # diff --git a/openlp/plugins/remotes/remoteplugin.py b/openlp/plugins/remotes/remoteplugin.py index 336fefdae..d9304241c 100644 --- a/openlp/plugins/remotes/remoteplugin.py +++ b/openlp/plugins/remotes/remoteplugin.py @@ -21,9 +21,10 @@ ############################################################################### import logging +import os from openlp.core.api.http import register_endpoint -from openlp.core.common import OpenLPMixin +from openlp.core.common import AppLocation, OpenLPMixin, check_directory_exists from openlp.core.common.httputils import get_web_page from openlp.core.lib import Plugin, StringContent, translate, build_icon from openlp.plugins.remotes.lib import RemotesTab @@ -58,6 +59,16 @@ class RemotesPlugin(Plugin, OpenLPMixin): 'download as well as custom developed interfaces') return about_text + def initialise(self): + """ + Create the internal file structure if it does not exist + :return: + """ + check_directory_exists(os.path.join(AppLocation.get_section_data_path('remotes'), 'assets')) + check_directory_exists(os.path.join(AppLocation.get_section_data_path('remotes'), 'images')) + check_directory_exists(os.path.join(AppLocation.get_section_data_path('remotes'), 'static')) + check_directory_exists(os.path.join(AppLocation.get_section_data_path('remotes'), 'templates')) + def set_plugin_text_strings(self): """ Called to define all translatable texts of the plugin