summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-11-07 22:30:33 +0100
committerXisco Fauli <anistenis@gmail.com>2012-11-08 07:42:28 +0100
commita434b93b25c6aa652b925a8aaba1e3e0ec6986a9 (patch)
treef9557e809bbef71609cd223e1519ae68896289c1 /wizards/com/sun/star/wizards/letter
parent1d615feed25842544a5ab3ae4265dc9c2de6f107 (diff)
pyagenda: better refactor it little by little
Change-Id: I002a8e27139243172deb2868fdf2fca32944be03
Diffstat (limited to 'wizards/com/sun/star/wizards/letter')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index bfdd6671ba4f..18fefbe24230 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -989,10 +989,9 @@ class LetterWizardDialogImpl(LetterWizardDialog):
'''Localise the template'''
constRangeList = TextDocument.searchFillInItems(1)
- for i in xrange(constRangeList.Count):
- item = constRangeList.getByIndex(i)
- text = item.String.lower()
- aux = TextElement(item, self.resources.dictConstants[text],
+ for i in constRangeList:
+ text = i.String.lower()
+ aux = TextElement(i, self.resources.dictConstants[text],
"hint", self.xMSF)
aux.write()