[Mpuls-commits] r2382 - wasko/branches/2.0/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 15 17:20:17 CEST 2010
Author: torsten
Date: 2010-04-15 17:20:15 +0200 (Thu, 15 Apr 2010)
New Revision: 2382
Modified:
wasko/branches/2.0/mpulsweb/model/case.py
Log:
Fixed building presets
Modified: wasko/branches/2.0/mpulsweb/model/case.py
===================================================================
--- wasko/branches/2.0/mpulsweb/model/case.py 2010-04-15 14:18:29 UTC (rev 2381)
+++ wasko/branches/2.0/mpulsweb/model/case.py 2010-04-15 15:20:15 UTC (rev 2382)
@@ -592,7 +592,6 @@
"""
# always use formed instance tree if available
if self.formed_instance is not None:
- print "present: %s" % self.preset
item = self._get_formed_item(name)
if item:
return item.getValue()
@@ -896,9 +895,10 @@
return self.case_cls.get_session_fields()
def _build_preset(self, result):
+ log.debug(result)
return dict((name, result[name])
for name in self.case_cls.get_preset_fields()
- if name in result)
+ if result.has_key(name))
def loadById(self, id):
"""Load a case with the given id. Return a case object"""
More information about the Mpuls-commits
mailing list