[Formed-commits] r368 - trunk/formed/formed/plugins/modify

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jul 21 16:51:36 CEST 2010


Author: torsten
Date: 2010-07-21 16:51:36 +0200 (Wed, 21 Jul 2010)
New Revision: 368

Modified:
   trunk/formed/formed/plugins/modify/rules.py
Log:
* formed/formed/plugins/modify/rules.py (descriptions): Do not collect
	all headers to the referenced fields. Only list labels of the error
	fields, which should be distinct enough (Issue870).


Modified: trunk/formed/formed/plugins/modify/rules.py
===================================================================
--- trunk/formed/formed/plugins/modify/rules.py	2010-07-07 10:26:43 UTC (rev 367)
+++ trunk/formed/formed/plugins/modify/rules.py	2010-07-21 14:51:36 UTC (rev 368)
@@ -119,10 +119,8 @@
 
 def descriptions(node):
     out = []
-    while node:
-        desc = node.getDescription().strip()
-        if desc: out.insert(0, desc)
-        node = node.getParent()
+    desc = node.getDescription().strip()
+    if desc: out.insert(0, desc)
     return out
 
 def remove_common_head(s1, s2):



More information about the Formed-commits mailing list