Fix a few issues in the server, and an erroneous 'formta' call

This commit is contained in:
Raoul Snyman 2016-11-02 19:17:43 +02:00
parent 66eb2a63d3
commit 96246c991a
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ from subprocess import Popen
import sys import sys
import os import os
import logging import logging
import time
# Add the vendor directory to sys.path so that we can load Pyro4 # Add the vendor directory to sys.path so that we can load Pyro4
sys.path.append(os.path.join(os.path.dirname(__file__), 'vendor')) 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)) log.exception('{path} - Unable to store openoffice preview'.format(path=path))
return thumbnails 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' Writes the list of titles (one per slide) to 'titles.txt' and the notes to 'slideNotes[x].txt'
in the thumbnails directory in the thumbnails directory

View File

@ -191,7 +191,7 @@ class Controller(object):
""" """
Based on the handler passed at startup triggers the previous slide event. 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: if not self.doc:
return return
if not self.is_live: if not self.is_live: