From b646f2063ab74f6c5f6a7e08baad10e446a166fb Mon Sep 17 00:00:00 2001 From: David Tardon Date: Fri, 24 May 2013 09:54:20 +0200 Subject: [PATCH] fix syntax errors in python wizards Change-Id: Ia237a0095c2cc783f52224bdde5d525baafacc52 --- wizards/com/sun/star/wizards/web/LogTaskListener.py | 2 +- wizards/com/sun/star/wizards/web/export/ImpressHTMLExporter.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wizards/com/sun/star/wizards/web/LogTaskListener.py b/wizards/com/sun/star/wizards/web/LogTaskListener.py index 13b7e59..a1fba5f 100644 --- a/wizards/com/sun/star/wizards/web/LogTaskListener.py +++ b/wizards/com/sun/star/wizards/web/LogTaskListener.py @@ -35,7 +35,7 @@ class LogTaskListener(TaskListener, ErrorHandler): out.println("TASK " + te.getTask().getTaskName() + " FINISHED: " + te.getTask().getSuccessfull() + "/" + te.getTask().getMax() + "Succeeded.") #@see com.sun.star.wizards.web.status.TaskListener#taskStatusChanged(com.sun.star.wizards.web.status.TaskEvent) - def taskStatusChanged(te) + def taskStatusChanged(te): out.println("TASK " + te.getTask().getTaskName() + " status : " + te.getTask().getSuccessfull() + "(+" + te.getTask().getFailed() + ")/" + te.getTask().getMax()) #@see com.sun.star.wizards.web.status.TaskListener#subtaskNameChanged(com.sun.star.wizards.web.status.TaskEvent) diff --git a/wizards/com/sun/star/wizards/web/export/ImpressHTMLExporter.py b/wizards/com/sun/star/wizards/web/export/ImpressHTMLExporter.py index c60a6dd..0b620c1 100644 --- a/wizards/com/sun/star/wizards/web/export/ImpressHTMLExporter.py +++ b/wizards/com/sun/star/wizards/web/export/ImpressHTMLExporter.py @@ -60,11 +60,11 @@ class ImpressHTMLExporter(ConfiguredExporter): size = session.cp_Design.cp_OptimizeDisplaySize if (size == 0): return self.SMALL_IMAGE - elif (size == 1) + elif (size == 1): return self.MEDIUM_IMAGE - elif (size == 2) + elif (size == 2): return self.LARGE_IMAGE return self.MEDIUM_IMAGE - def getSession(doc) + def getSession(doc): return doc.getSettings().cp_DefaultSession -- 1.8.1.4