[Libreoffice-commits] core.git: Branch 'feature/pyweb-wizard' - wizards/com

Javier Fernandez jfernandez at igalia.com
Mon Apr 22 04:50:54 PDT 2013


 wizards/com/sun/star/wizards/common/Desktop.py |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

New commits:
commit b51cf843665bf178d6f64320b758f269eb71d718
Author: Javier Fernandez <jfernandez at igalia.com>
Date:   Fri Apr 19 18:34:53 2013 +0000

    Fixed the preview bug.
    
    Using the mutiple return value of the PyUNO calls for the inout args.
    
    Change-Id: I7eb95a9cc8e020367161b1ff2a728fa543eb656c
    
    Change-Id: I7d8e39ab9d7848b3283647e317eb90029e42b60c

diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py
index 1bfc414..76bacaa 100644
--- a/wizards/com/sun/star/wizards/common/Desktop.py
+++ b/wizards/com/sun/star/wizards/common/Desktop.py
@@ -139,12 +139,14 @@ class Desktop(object):
         try:
             print ("DEBUG !!! getDispatchURL -- s_URL: ", _sURL)
             oTransformer = xMSF.createInstance("com.sun.star.util.URLTransformer")
-            oURL = list(range(1))
-            oURL[0] = URL()
-            oURL[0].Complete = _sURL
-            oTransformer.parseStrict(oURL[0])
+            oURL = URL()
+            oURL.Complete = _sURL
+            ok, oURL = oTransformer.parseStrict(oURL)
+            if (not ok):
+                print ("DEBUG !!! getDispatchURL --  parsing failed.")
+                return None
             print ("DEBUG !!! getDispatchURL --  oURL: ", oURL)
-            return oURL[0];
+            return oURL
         except Exception:
             traceback.print_exc()
         return None


More information about the Libreoffice-commits mailing list