Kaydet (Commit) 59e09804 authored tarafından Xisco Fauli's avatar Xisco Fauli

pyletter: Some pyflakes love

Change-Id: I60d921ea27e995ffc4e18995993d961dc91543b3
üst f5292779
...@@ -20,7 +20,6 @@ import os.path ...@@ -20,7 +20,6 @@ import os.path
from .LetterWizardDialog import LetterWizardDialog, uno, HelpIds, HID from .LetterWizardDialog import LetterWizardDialog, uno, HelpIds, HID
from .LetterDocument import LetterDocument, BusinessPaperObject from .LetterDocument import LetterDocument, BusinessPaperObject
from .CGLetterWizard import CGLetterWizard from .CGLetterWizard import CGLetterWizard
from ..common.NoValidPathException import NoValidPathException
from ..common.FileAccess import FileAccess from ..common.FileAccess import FileAccess
from ..common.Configuration import Configuration from ..common.Configuration import Configuration
from ..common.SystemDialog import SystemDialog from ..common.SystemDialog import SystemDialog
...@@ -34,7 +33,6 @@ from ..text.TextFieldHandler import TextFieldHandler ...@@ -34,7 +33,6 @@ from ..text.TextFieldHandler import TextFieldHandler
from ..document.OfficeDocument import OfficeDocument from ..document.OfficeDocument import OfficeDocument
from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO from com.sun.star.awt.VclWindowPeerAttribute import YES_NO, DEF_NO
from com.sun.star.uno import RuntimeException
from com.sun.star.util import CloseVetoException from com.sun.star.util import CloseVetoException
from com.sun.star.view.DocumentZoomType import OPTIMAL from com.sun.star.view.DocumentZoomType import OPTIMAL
from com.sun.star.document.UpdateDocMode import FULL_UPDATE from com.sun.star.document.UpdateDocMode import FULL_UPDATE
...@@ -169,7 +167,6 @@ class LetterWizardDialogImpl(LetterWizardDialog): ...@@ -169,7 +167,6 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.switchToStep(self.getCurrentStep(), self.nMaxStep) self.switchToStep(self.getCurrentStep(), self.nMaxStep)
endWizard = True endWizard = True
try: try:
fileAccess = FileAccess(self.xMSF)
self.sPath = self.myPathSelection.getSelectedPath() self.sPath = self.myPathSelection.getSelectedPath()
if not self.sPath or not os.path.exists(self.sPath): if not self.sPath or not os.path.exists(self.sPath):
self.myPathSelection.triggerPathPicker() self.myPathSelection.triggerPathPicker()
...@@ -493,9 +490,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): ...@@ -493,9 +490,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.myLetterDoc.xTextDocument, " ", iFrameWidth, iReceiverHeight, self.myLetterDoc.xTextDocument, " ", iFrameWidth, iReceiverHeight,
iFrameX, iFrameY - iReceiverHeight) iFrameX, iFrameY - iReceiverHeight)
self.setPossibleAddressReceiver(False) self.setPossibleAddressReceiver(False)
except NoSuchElementException: except Exception:
traceback.print_exc()
except WrappedTargetException:
traceback.print_exc() traceback.print_exc()
if self.chkPaperCompanyAddress.State != 0: if self.chkPaperCompanyAddress.State != 0:
......
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