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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 7 10:31:01 CEST 2010


Author: torsten
Date: 2010-04-07 10:30:54 +0200 (Wed, 07 Apr 2010)
New Revision: 2281

Modified:
   wasko/branches/2.0/mpulsweb/model/phase.py
Log:
* mpulsweb/model/phase.py (Field.__init__): Set self.label initially
  to None. Log warning if a field can not be found.


Modified: wasko/branches/2.0/mpulsweb/model/phase.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/phase.py	2010-04-07 07:37:56 UTC (rev 2280)
+++ wasko/branches/2.0/mpulsweb/model/phase.py	2010-04-07 08:30:54 UTC (rev 2281)
@@ -198,6 +198,7 @@
         self.name = name
         self.page = page
         self.it = it
+        self.label = None
         self.conditions = []
 
         case_id = self.it.getRootNode().getIdentifier()
@@ -210,6 +211,8 @@
                 expr = condition.get('expr')
                 msg = condition.get('msg')
                 self.conditions.append(Condition(field, expr, msg))
+        else:
+            log.warning(_('Can not find field %s') % real_id)
 
     def get_link(self):
         out = []



More information about the Mpuls-commits mailing list