[Mpuls-commits] r5769 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jan 17 09:26:52 CET 2012
Author: torsten
Date: 2012-01-17 09:26:51 +0100 (Tue, 17 Jan 2012)
New Revision: 5769
Modified:
base/trunk/mpulsweb/model/statement.py
Log:
Fix string substitution in provacy statement
Modified: base/trunk/mpulsweb/model/statement.py
===================================================================
--- base/trunk/mpulsweb/model/statement.py 2012-01-11 15:33:01 UTC (rev 5768)
+++ base/trunk/mpulsweb/model/statement.py 2012-01-17 08:26:51 UTC (rev 5769)
@@ -85,7 +85,7 @@
ff = {}
for k, v in f.iteritems():
try:
- ff[k] = escape(F.NA(self.case.__getattr__(v)))
+ ff[k] = escape(F.NA(getattr(self.case, v)))
except:
log.warning('Can not get field %s' % k)
More information about the Mpuls-commits
mailing list