summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJavier Fernandez <jfernandez@igalia.com>2013-05-03 13:43:14 +0000
committerJavier Fernandez <jfernandez@igalia.com>2013-05-08 09:36:38 +0000
commitb11afacfb7e227df7538c73b9b6350c6ed802450 (patch)
tree7f0ba15b8575ffd7fb28ba8694a05b7d6d7ec18a /wizards
parent9d05b44bb9a3a599ae84867077eaf6c721959209 (diff)
PyWebWizard: Fixing bugs and implementation of mising features.
New instance method (getProperties) for the Properties class. - The DocumentPreview instance requires it. Change-Id: Ide5b87752cedd4ae91077d641d9ad53874c56e4b
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/Properties.py3
-rw-r--r--wizards/com/sun/star/wizards/ui/DocumentPreview.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/Properties.py b/wizards/com/sun/star/wizards/common/Properties.py
index 6c95573e922d..a6dd8c878af4 100644
--- a/wizards/com/sun/star/wizards/common/Properties.py
+++ b/wizards/com/sun/star/wizards/common/Properties.py
@@ -58,3 +58,6 @@ class Properties(dict):
if handle is not None:
pv.Handle = handle
return pv
+
+ def getProperties1(self):
+ return self.getProperties(self)
diff --git a/wizards/com/sun/star/wizards/ui/DocumentPreview.py b/wizards/com/sun/star/wizards/ui/DocumentPreview.py
index 565dd5712d63..d358ad49937b 100644
--- a/wizards/com/sun/star/wizards/ui/DocumentPreview.py
+++ b/wizards/com/sun/star/wizards/ui/DocumentPreview.py
@@ -16,7 +16,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import traceback
-from wizards.common.Properties import Properties
+from ..common.Properties import Properties
from com.sun.star.awt import WindowDescriptor
from com.sun.star.awt import Rectangle
@@ -56,7 +56,7 @@ class DocumentPreview(object):
ps = Properties()
for index,item in enumerate(propNames):
ps[item] = propValues[index]
- return self.setDocument(self.url, ps.getProperties(ps))
+ return self.setDocument(self.url, ps.getProperties1())
def reload(self, xmsf):
self.closeFrame()