From 96246c991a50c063868ee85cf10607e97805061c Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 2 Nov 2016 19:17:43 +0200 Subject: [PATCH] Fix a few issues in the server, and an erroneous 'formta' call --- openlp/plugins/presentations/lib/libreofficeserver.py | 3 ++- openlp/plugins/presentations/lib/messagelistener.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/presentations/lib/libreofficeserver.py b/openlp/plugins/presentations/lib/libreofficeserver.py index d313bc3b4..2482bc581 100644 --- a/openlp/plugins/presentations/lib/libreofficeserver.py +++ b/openlp/plugins/presentations/lib/libreofficeserver.py @@ -5,6 +5,7 @@ from subprocess import Popen import sys import os import logging +import time # Add the vendor directory to sys.path so that we can load Pyro4 sys.path.append(os.path.join(os.path.dirname(__file__), 'vendor')) @@ -191,7 +192,7 @@ class LibreOfficeServer(object): log.exception('{path} - Unable to store openoffice preview'.format(path=path)) return thumbnails - def get_title_and_notes(self): + def get_titles_and_notes(self): """ Writes the list of titles (one per slide) to 'titles.txt' and the notes to 'slideNotes[x].txt' in the thumbnails directory diff --git a/openlp/plugins/presentations/lib/messagelistener.py b/openlp/plugins/presentations/lib/messagelistener.py index c12f1b0fb..37d192fdb 100644 --- a/openlp/plugins/presentations/lib/messagelistener.py +++ b/openlp/plugins/presentations/lib/messagelistener.py @@ -191,7 +191,7 @@ class Controller(object): """ Based on the handler passed at startup triggers the previous slide event. """ - log.debug('Live = {live}, previous'.formta(live=self.is_live)) + log.debug('Live = {live}, previous'.format(live=self.is_live)) if not self.doc: return if not self.is_live: