[Mpuls-commits] r2323 - wasko/branches/2.0/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Apr 13 14:52:55 CEST 2010


Author: torsten
Date: 2010-04-13 14:52:53 +0200 (Tue, 13 Apr 2010)
New Revision: 2323

Modified:
   wasko/branches/2.0/mpulsweb/model/phase.py
Log:
Only add rules for required fields


Modified: wasko/branches/2.0/mpulsweb/model/phase.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/phase.py	2010-04-13 12:28:26 UTC (rev 2322)
+++ wasko/branches/2.0/mpulsweb/model/phase.py	2010-04-13 12:52:53 UTC (rev 2323)
@@ -168,8 +168,9 @@
             # Check if this fields is a phase relvant required field 
             name = meta.getName()
             if id in flags['required']:
+                # Only add warnigs and rules with "required" in der name
                 rules = [rule for rule in formed.name2markingrules.get(name, ()) 
-                         if rule.isWarning()]
+                         if rule.isWarning() and REQUIRED.match(rule.getName())]
                 self.fields.append(Field(name, page, rules, it))
             # Check if this fields is a phase relvant datefield
             if id in flags['time']:



More information about the Mpuls-commits mailing list