From b11afacfb7e227df7538c73b9b6350c6ed802450 Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Fri, 3 May 2013 13:43:14 +0000 Subject: PyWebWizard: Fixing bugs and implementation of mising features. New instance method (getProperties) for the Properties class. - The DocumentPreview instance requires it. Change-Id: Ide5b87752cedd4ae91077d641d9ad53874c56e4b --- wizards/com/sun/star/wizards/common/Properties.py | 3 +++ wizards/com/sun/star/wizards/ui/DocumentPreview.py | 4 ++-- 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() -- cgit