Re: [gnue] r8393 - trunk/gnue-designer/src/base/tools
Johannes Vetter <[email protected]> Sat, 08 Apr 2006 19:17:30 +0200
| Newsgroups | gmane.comp.gnu.enterprise.devel |
|---|---|
| Organization | ByteWise Software GmbH |
| Message-ID | <[email protected]> |
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 _______________________________________________ Gnue-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue-dev
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBEN/AqVTjHnzKwdk0RAr48AJ9N8WEeIajqdhbZMJbss9jNFzkm6ACdGWac Teyi713ZKbwiF8xv6+kJZMw= =yEtJ -----END PGP SIGNATURE-----