[Mpuls-commits] r98 - in waska/trunk: . waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Aug 28 11:16:25 CEST 2008


Author: teichmann
Date: 2008-08-28 11:16:24 +0200 (Thu, 28 Aug 2008)
New Revision: 98

Modified:
   waska/trunk/ChangeLog.txt
   waska/trunk/waskaweb/lib/needed.py
Log:
Recognize comma separated phases


Modified: waska/trunk/ChangeLog.txt
===================================================================
--- waska/trunk/ChangeLog.txt	2008-08-28 08:55:19 UTC (rev 97)
+++ waska/trunk/ChangeLog.txt	2008-08-28 09:16:24 UTC (rev 98)
@@ -1,5 +1,9 @@
 2008-08-28  Sascha L. Teichmann <sascha.teichmann at intevation.de>
 
+	* waskaweb/lib/needed.py: recognize comma separated phases.
+
+2008-08-28  Sascha L. Teichmann <sascha.teichmann at intevation.de>
+
 	* waskaweb/lib/needed.py: Fix link to help.
 
 2008-08-28  Sascha L. Teichmann <sascha.teichmann at intevation.de>

Modified: waska/trunk/waskaweb/lib/needed.py
===================================================================
--- waska/trunk/waskaweb/lib/needed.py	2008-08-28 08:55:19 UTC (rev 97)
+++ waska/trunk/waskaweb/lib/needed.py	2008-08-28 09:16:24 UTC (rev 98)
@@ -64,7 +64,8 @@
                 if len(p) > 1:
                     kind, phase = p[0], p[1]
                     if kind == "required":
-                        phases.setdefault(phase, []).append([nc, None])
+                        for p in [p.strip() for p in phase.split(',')]:
+                            if p: phases.setdefault(p, []).append([nc, None])
                 else:
                     # TODO: Fix formed tree
                     if p[0] == "required":



More information about the Mpuls-commits mailing list