summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-04-12 10:59:06 +0000
committerJavier Fernandez <jfernandez@igalia.com>2013-04-12 11:41:26 +0000
commitcbeda02fb914b16f498289ff1a45c5cff1be5178 (patch)
treec631ec623b026782d884bd6be0bfa6c674c996e7
parent2fda9a1cc46eb45217da77009a5a7dfe76cab829 (diff)
Fixed bug in the FTPDialog
Enable again the getPropertyValues call to verofy the FTP connection is successfully established. Using an Any type instead of beans.Properties because of the pyuno bug. Change-Id: Ib6870a021d30c3b2fc971b66016ba9a8c3648eaf
-rw-r--r--wizards/com/sun/star/wizards/common/UCB.py3
-rw-r--r--wizards/com/sun/star/wizards/web/FTPDialog.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/UCB.py b/wizards/com/sun/star/wizards/common/UCB.py
index 0065801706a1..5377a3ffcd7f 100644
--- a/wizards/com/sun/star/wizards/common/UCB.py
+++ b/wizards/com/sun/star/wizards/common/UCB.py
@@ -163,7 +163,8 @@ class UCB(object):
pv[0].Name = propName
pv[0].Handle = -1
- row = self.executeCommand(content, "getPropertyValues", tuple(pv))
+ row = self.executeCommand(content, "getPropertyValues",
+ uno.Any("[]com.sun.star.beans.Property", tuple(pv)))
if (isinstance(classType, str)):
return row.getString(1)
elif (isinstance(classType, bool)):
diff --git a/wizards/com/sun/star/wizards/web/FTPDialog.py b/wizards/com/sun/star/wizards/web/FTPDialog.py
index d3c1ddb22f43..ccd39f95648a 100644
--- a/wizards/com/sun/star/wizards/web/FTPDialog.py
+++ b/wizards/com/sun/star/wizards/web/FTPDialog.py
@@ -364,7 +364,7 @@ class FTPDialog(UnoDialog2, UIConsts):
self.ucb.executeCommand(content, "open", aArg)
# get the title property of the content.
- #obj = self.ucb.getContentProperty(content, "Title", str)
+ obj = self.ucb.getContentProperty(content, "Title", str)
# changes the ftp subdirectory, in both
# the UI and the data.