From 71f91e5d1582945f6fafb670aa29a6458479b2e5 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 5 Mar 2017 10:08:05 +0000 Subject: [PATCH] fix broken plugin --- openlp/plugins/remotes/remoteplugin.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/remotes/remoteplugin.py b/openlp/plugins/remotes/remoteplugin.py index e46429c0e..a83730c93 100644 --- a/openlp/plugins/remotes/remoteplugin.py +++ b/openlp/plugins/remotes/remoteplugin.py @@ -28,7 +28,7 @@ from openlp.core.common import AppLocation, Registry, OpenLPMixin, check_directo from openlp.core.common.httputils import get_web_page from openlp.core.lib import Plugin, StringContent, translate, build_icon from openlp.plugins.remotes.endpoint import remote_endpoint -from openlp.plugins.remotes.deploy import download_and_check +from openlp.core.api.deploy import download_and_check log = logging.getLogger(__name__) @@ -47,13 +47,19 @@ class RemotesPlugin(Plugin, OpenLPMixin): self.live_cache = None self.stage_cache = None register_endpoint(remote_endpoint) - print("AAAAAA") Registry().register_function('download_website', self.manage_download) + + 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')) + @staticmethod def about(): """