[Libreoffice-commits] core.git: wizards/com

David Tardon dtardon at redhat.com
Fri May 24 07:22:31 PDT 2013


 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(-)

New commits:
commit cdad97557a729ecbbe0236f7998647c5249a005f
Author: David Tardon <dtardon at redhat.com>
Date:   Fri May 24 09:54:20 2013 +0200

    fix syntax errors in python wizards
    
    Change-Id: Ia237a0095c2cc783f52224bdde5d525baafacc52

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


More information about the Libreoffice-commits mailing list