summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-21 21:11:36 +0200
committerXisco Fauli <anistenis@gmail.com>2011-06-21 21:11:36 +0200
commit89f17de5c68479a8b20047b85cbab913bafb71ce (patch)
treead7f53627cf7b12d79068b521958c5e9f8dc41c9 /wizards
parentc5253c206a6b8a1fcb2a184b1df92aaeb156ac12 (diff)
Add an import I deleted by mistake
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.py2
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py9
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