summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2013-02-11 22:01:25 +0100
committerXisco Fauli <anistenis@gmail.com>2013-02-11 22:03:14 +0100
commit57041602e2e0c5d1035359108ff1237a324c39d6 (patch)
treee21d0c4e34caa6c8e0decc81bd0132f2309e225e /wizards/com/sun/star/wizards/letter
parentebb263856c40d019c6aa9f5c281b33d26578004e (diff)
pywizards: simplify paths handling
Change-Id: I436ca81e180d595e018811823e8b77c8b675bef5
Diffstat (limited to 'wizards/com/sun/star/wizards/letter')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index a7ff8f668275..f3b55fe5b00e 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -99,7 +99,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
self.buildStep4()
self.buildStep5()
self.buildStep6()
- self.__initializePaths()
+
+ self.initializePaths()
self.initializeSalutation()
self.initializeGreeting()
@@ -768,19 +769,8 @@ class LetterWizardDialogImpl(LetterWizardDialog):
else:
return None
- def __initializePaths(self):
- try:
- self.sTemplatePath = \
- FileAccess.getOfficePath2(
- self.xMSF, "Template", "share", "/wizard")
- self.sUserTemplatePath = \
- FileAccess.getOfficePath2(self.xMSF, "Template", "user", "")
- except NoValidPathException:
- traceback.print_exc()
-
def initializeTemplates(self, xMSF):
- sLetterPath = FileAccess.combinePaths(
- xMSF, self.sTemplatePath, "/../common/wizard/letter")
+ sLetterPath = self.sTemplatePath + "/../common/wizard/letter"
self.BusinessFiles = \
FileAccess.getFolderTitles(
xMSF, "bus", sLetterPath, self.resources.dictBusinessTemplate)