Am Samstag, den 08.04.2006, 08:09 -0500 schrieb [EMAIL PROTECTED]:
> 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
_______________________________________________ Gnue-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue-dev
