[Mpuls-commits] r1520 - in wasko/branches/2.0: . waskaweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 11 18:02:59 CET 2010


Author: bh
Date: 2010-02-11 18:02:57 +0100 (Thu, 11 Feb 2010)
New Revision: 1520

Modified:
   wasko/branches/2.0/ChangeLog
   wasko/branches/2.0/waskaweb/model/case.py
Log:
* waskaweb/model/case.py (SessionCase.toFormData): Make it work
with the actual return value of Case.get_session_fields()


Modified: wasko/branches/2.0/ChangeLog
===================================================================
--- wasko/branches/2.0/ChangeLog	2010-02-11 10:17:35 UTC (rev 1519)
+++ wasko/branches/2.0/ChangeLog	2010-02-11 17:02:57 UTC (rev 1520)
@@ -1,3 +1,8 @@
+2010-02-11  Bernhard Herzog  <bh at intevation.de>
+
+	* waskaweb/model/case.py (SessionCase.toFormData): Make it work
+	with the actual return value of Case.get_session_fields()
+
 2010-02-11  Torsten Irländer <torsten.irlaender at intevation.de>
 
 	Moved annotations to base.

Modified: wasko/branches/2.0/waskaweb/model/case.py
===================================================================
--- wasko/branches/2.0/waskaweb/model/case.py	2010-02-11 10:17:35 UTC (rev 1519)
+++ wasko/branches/2.0/waskaweb/model/case.py	2010-02-11 17:02:57 UTC (rev 1520)
@@ -582,8 +582,9 @@
 
     def toFormData(self):
         data = {}
-        for name, formedname, default, converter in Case.get_session_fields():
-            data[formedname] = getattr(self, name)
+        for desc in Case.get_session_fields():
+            data[desc.formedname] = getattr(self, desc.name)
+        return data
 
     def isYoungerThan(self, mydate):
         """Return True if case was active relative to mydate.



More information about the Mpuls-commits mailing list