[Mpuls-commits] r255 - in wasko/trunk: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 11 12:46:30 CET 2009


Author: teichmann
Date: 2009-02-11 12:46:29 +0100 (Wed, 11 Feb 2009)
New Revision: 255

Modified:
   wasko/trunk/ChangeLog.txt
   wasko/trunk/waskaweb/model/data.py
Log:
Little workaround to get after case creation.



Modified: wasko/trunk/ChangeLog.txt
===================================================================
--- wasko/trunk/ChangeLog.txt	2009-02-10 14:43:45 UTC (rev 254)
+++ wasko/trunk/ChangeLog.txt	2009-02-11 11:46:29 UTC (rev 255)
@@ -1,3 +1,8 @@
+2009-02-11	Sascha L. Teichmann	<teichmann at intevation.de>
+
+	* waskaweb/model/data.py: Little workaround to get after
+	  case creation.
+
 2009-02-10	Torsten Irlaender  <torsten.irlaender at intevation.de>
 
 	Disabled Checks for inkonsistency and old cases.

Modified: wasko/trunk/waskaweb/model/data.py
===================================================================
--- wasko/trunk/waskaweb/model/data.py	2009-02-10 14:43:45 UTC (rev 254)
+++ wasko/trunk/waskaweb/model/data.py	2009-02-11 11:46:29 UTC (rev 255)
@@ -37,6 +37,8 @@
 
 from expr           import Expr
 
+import sys
+
 import waskaweb.model.io.document
 
 class FilteredNodeComponentProxy:
@@ -47,10 +49,14 @@
         self.nc = nc
 
     def getName(self):
+        if not self.nc: return ""
         return self.nc.getName()
 
     def allWidgets(self):
-        return [w for w in self.nc.allWidgets() if w.getName() in self.params]
+        if self.nc:
+            print >> sys.stderr, self.nc
+            return [w for w in self.nc.allWidgets() if w.getName() in self.params]
+        return []
 
 class PageNode(Node):
     def __init__(self):



More information about the Mpuls-commits mailing list