diff options
author | Xisco Fauli <anistenis@gmail.com> | 2011-06-21 21:11:36 +0200 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2011-06-21 21:11:36 +0200 |
commit | 89f17de5c68479a8b20047b85cbab913bafb71ce (patch) | |
tree | ad7f53627cf7b12d79068b521958c5e9f8dc41c9 /wizards | |
parent | Sort listboxes properly (diff) | |
download | core-89f17de5c68479a8b20047b85cbab913bafb71ce.tar.gz core-89f17de5c68479a8b20047b85cbab913bafb71ce.zip |
Add an import I deleted by mistake
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/common/FileAccess.py | 2 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.py b/wizards/com/sun/star/wizards/common/FileAccess.py index 8a6b14559891..7506336fc208 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.py +++ b/wizards/com/sun/star/wizards/common/FileAccess.py @@ -3,6 +3,7 @@ from NoValidPathException import * from com.sun.star.ucb import CommandAbortedException from com.sun.star.awt.VclWindowPeerAttribute import OK, YES_NO import types +from os import path as osPath ''' This class delivers static convenience methods @@ -571,6 +572,7 @@ class FileAccess(object): osPath.abspath(path)) return r except Exception: + traceback.print_exc() return None def getPath(self, parentURL, childURL): diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py index 615e0cdc1321..2d49456f90ee 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py @@ -135,16 +135,12 @@ class FaxWizardDialogImpl(FaxWizardDialog): self.myFaxDoc.setWizardTemplateDocInfo( \ self.resources.resFaxWizardDialog_title, self.resources.resTemplateDescription) - endWizard = True try: fileAccess = FileAccess(self.xMSF) self.sPath = self.myPathSelection.getSelectedPath() if self.sPath == "": self.myPathSelection.triggerPathPicker() self.sPath = self.myPathSelection.getSelectedPath() - if self.sPath == "": - endWizard = False - return self.sPath = fileAccess.getURL(self.sPath) #first, if the filename was not changed, thus @@ -206,9 +202,8 @@ class FaxWizardDialogImpl(FaxWizardDialog): except Exception, e: traceback.print_exc() finally: - if endWizard: - self.xUnoDialog.endExecute() - self.running = False + self.xUnoDialog.endExecute() + self.running = False return True |