[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUe-dev] Re: [gnue] r8393 - trunk/gnue-designer/src/base/tools
From: |
Johannes Vetter |
Subject: |
[GNUe-dev] Re: [gnue] r8393 - trunk/gnue-designer/src/base/tools |
Date: |
Sat, 08 Apr 2006 19:17:30 +0200 |
Am Samstag, den 08.04.2006, 08:09 -0500 schrieb address@hidden:
> Author: jan
> Date: 2006-04-08 08:09:59 -0500 (Sat, 08 Apr 2006)
> New Revision: 8393
>
> Modified:
> trunk/gnue-designer/src/base/tools/PropertyEditor.py
> Log:
> remove iterators, as they are not compatible with python2.4
>
> Modified: trunk/gnue-designer/src/base/tools/PropertyEditor.py
> ===================================================================
> --- trunk/gnue-designer/src/base/tools/PropertyEditor.py 2006-04-07
> 11:51:38 UTC (rev 8392)
> +++ trunk/gnue-designer/src/base/tools/PropertyEditor.py 2006-04-08
> 13:09:59 UTC (rev 8393)
> @@ -95,8 +95,10 @@
> except KeyError:
> # This little tidbit does mixed case w/'_' as separators
> words = attribute_name.split(':',1)[-1].split('_')
> - for index, text in iterate(words):
> + index=0
> + for text in words:
> words[index] = text.capitalize()
> + index+=1
> label = " ".join(words)
Why not use 'enumerate' ?
for (index, text) in enumerate (words):
words [index] = text.capitalize()
just my 2c
--
BYTEWISE Software GmbH Tel +43 (5577) 89877-0
i.A. Johannes Vetter Fax +43 (5577) 89877-66
A-6890 Lustenau, Enga 2 http://www.bytewise.at
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Wir bieten Installation und Support für Ubuntu: ein auf
GNU/Linux basierendes Softwaresystem für Arbeitsplatzrechner
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUe-dev] Re: [gnue] r8393 - trunk/gnue-designer/src/base/tools,
Johannes Vetter <=