[Formed-commits] r333 - in trunk: . formed/formed/plugins/names
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue May 26 17:21:01 CEST 2009
Author: teichmann
Date: 2009-05-26 17:21:00 +0200 (Tue, 26 May 2009)
New Revision: 333
Modified:
trunk/ChangeLog
trunk/formed/formed/plugins/names/filter.py
Log:
small optimization in making names unique.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-26 14:12:25 UTC (rev 332)
+++ trunk/ChangeLog 2009-05-26 15:21:00 UTC (rev 333)
@@ -1,5 +1,9 @@
2009-05-26 Sascha L. Teichmann <teichmann at intevation.de>
+ * formed/formed/plugins/names/filter.py: small optimization.
+
+2009-05-26 Sascha L. Teichmann <teichmann at intevation.de>
+
* formed/formed/plugins/names/filter.py: Repaired unique filter for
nodecomponent names.
Modified: trunk/formed/formed/plugins/names/filter.py
===================================================================
--- trunk/formed/formed/plugins/names/filter.py 2009-05-26 14:12:25 UTC (rev 332)
+++ trunk/formed/formed/plugins/names/filter.py 2009-05-26 15:21:00 UTC (rev 333)
@@ -33,11 +33,10 @@
for x in all.values():
if len(x) < 2: continue
+ old_name = x[0].getName()
+ if not old_name: continue
for y in x[1:]:
- old_name = y.getName()
- if not old_name: continue
-
m = TYPE.match(old_name)
if m:
t, c = m.group(1), int(m.group(2))
More information about the Formed-commits
mailing list