summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-04-19 18:34:53 +0000
committerJavier Fernandez <jfernandez@igalia.com>2013-04-22 14:13:55 +0000
commit2bc6dc3705db3154a08c81d9f4795f3be57f2f1d (patch)
tree2934bb19956e281c0625913c3a30cf7135bf6376
parentcbeda02fb914b16f498289ff1a45c5cff1be5178 (diff)
Fixed the preview bug.feature/pyweb-wizard
Using the mutiple return value of the PyUNO calls for the inout args. Change-Id: I7eb95a9cc8e020367161b1ff2a728fa543eb656c
-rw-r--r--wizards/com/sun/star/wizards/common/Desktop.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py
index 1bfc4142466c..76bacaab27d1 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