Kaydet (Commit) b11afacf authored tarafından Javier Fernandez's avatar Javier Fernandez

PyWebWizard: Fixing bugs and implementation of mising features.

New instance method (getProperties) for the Properties class.

- The DocumentPreview instance requires it.

Change-Id: Ide5b87752cedd4ae91077d641d9ad53874c56e4b
üst 9d05b44b
...@@ -58,3 +58,6 @@ class Properties(dict): ...@@ -58,3 +58,6 @@ class Properties(dict):
if handle is not None: if handle is not None:
pv.Handle = handle pv.Handle = handle
return pv return pv
def getProperties1(self):
return self.getProperties(self)
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 . # the License at http://www.apache.org/licenses/LICENSE-2.0 .
# #
import traceback 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 WindowDescriptor
from com.sun.star.awt import Rectangle from com.sun.star.awt import Rectangle
...@@ -56,7 +56,7 @@ class DocumentPreview(object): ...@@ -56,7 +56,7 @@ class DocumentPreview(object):
ps = Properties() ps = Properties()
for index,item in enumerate(propNames): for index,item in enumerate(propNames):
ps[item] = propValues[index] ps[item] = propValues[index]
return self.setDocument(self.url, ps.getProperties(ps)) return self.setDocument(self.url, ps.getProperties1())
def reload(self, xmsf): def reload(self, xmsf):
self.closeFrame() self.closeFrame()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment